Refactor api implementation to use grape framework
Migrates v1
api version to implementation using grape framework in preparation for api v2
.
This change removes all endpoints being authenticated against X-Gitlab-Token
header when SETTINGS__GITLAB_AUTH_TOKEN
is present. This is only valid for /api/hooks
endpoint.
Fixes: https://gitlab.com/dependabot-gitlab/dependabot/-/issues/337
Edited by George Koltsov