2021-01-08 13:10:43 -05:00
|
|
|
openapi: 3.0.0
|
|
|
|
tags:
|
|
|
|
- name: version
|
|
|
|
description: Version
|
|
|
|
- name: access_requests
|
|
|
|
description: Access requests for projects and groups
|
2021-05-06 11:10:17 -04:00
|
|
|
- name: access_tokens
|
|
|
|
description: Access tokens for projects
|
2020-08-27 08:10:20 -04:00
|
|
|
info:
|
|
|
|
description: |
|
|
|
|
An OpenAPI definition for the GitLab REST API.
|
2021-01-08 13:10:43 -05:00
|
|
|
Few API resources or endpoints are currently included.
|
2020-08-27 08:10:20 -04:00
|
|
|
The intent is to expand this to match the entire Markdown documentation of the API:
|
|
|
|
<https://docs.gitlab.com/ee/api/>. Contributions are welcome.
|
|
|
|
|
|
|
|
When viewing this on gitlab.com, you can test API calls directly from the browser
|
|
|
|
against the `gitlab.com` instance, if you are logged in.
|
2021-06-28 11:08:03 -04:00
|
|
|
The feature uses the current [GitLab session cookie](https://docs.gitlab.com/ee/api/index.html#session-cookie),
|
2020-10-02 14:08:56 -04:00
|
|
|
so each request is made using your account.
|
2020-08-27 08:10:20 -04:00
|
|
|
|
2021-05-06 11:10:17 -04:00
|
|
|
Instructions for using this tool can be found in [Interactive API Documentation](openapi_interactive.md).
|
|
|
|
|
2021-01-08 13:10:43 -05:00
|
|
|
version: v4
|
|
|
|
title: GitLab API
|
|
|
|
termsOfService: 'https://about.gitlab.com/terms/'
|
2020-08-27 08:10:20 -04:00
|
|
|
license:
|
2021-01-08 13:10:43 -05:00
|
|
|
name: CC BY-SA 4.0
|
|
|
|
url: 'https://gitlab.com/gitlab-org/gitlab/-/blob/master/LICENSE'
|
2020-08-27 08:10:20 -04:00
|
|
|
servers:
|
2021-01-08 13:10:43 -05:00
|
|
|
- url: 'https://gitlab.com/api/'
|
|
|
|
security:
|
|
|
|
- ApiKeyAuth: []
|
|
|
|
|
|
|
|
components:
|
|
|
|
securitySchemes:
|
|
|
|
ApiKeyAuth:
|
|
|
|
type: apiKey
|
|
|
|
in: header
|
|
|
|
name: Private-Token
|
2020-08-27 08:10:20 -04:00
|
|
|
|
|
|
|
paths:
|
2021-01-08 13:10:43 -05:00
|
|
|
# VERSION
|
2020-08-27 08:10:20 -04:00
|
|
|
/v4/version:
|
2021-01-08 13:10:43 -05:00
|
|
|
$ref: 'v4/version.yaml'
|
|
|
|
|
|
|
|
# ACCESS REQUESTS (PROJECTS)
|
|
|
|
/v4/projects/{id}/access_requests:
|
|
|
|
$ref: 'v4/access_requests.yaml#/accessRequestsProjects'
|
|
|
|
|
|
|
|
/v4/projects/{id}/access_requests/{user_id}/approve:
|
|
|
|
$ref: 'v4/access_requests.yaml#/accessRequestsProjectsApprove'
|
|
|
|
|
|
|
|
/v4/projects/{id}/access_requests/{user_id}:
|
|
|
|
$ref: 'v4/access_requests.yaml#/accessRequestsProjectsDeny'
|
|
|
|
|
|
|
|
# ACCESS REQUESTS (GROUPS)
|
|
|
|
/v4/groups/{id}/access_requests:
|
|
|
|
$ref: 'v4/access_requests.yaml#/accessRequestsGroups'
|
|
|
|
|
|
|
|
/v4/groups/{id}/access_requests/{user_id}/approve:
|
|
|
|
$ref: 'v4/access_requests.yaml#/accessRequestsGroupsApprove'
|
|
|
|
|
2021-05-06 11:10:17 -04:00
|
|
|
/v4/groups/{id}/access_requests/{user_id}:
|
2021-01-08 13:10:43 -05:00
|
|
|
$ref: 'v4/access_requests.yaml#/accessRequestsGroupsDeny'
|
|
|
|
|
2021-05-06 11:10:17 -04:00
|
|
|
# ACCESS REQUESTS (PROJECTS)
|
|
|
|
/v4/projects/{id}/access_tokens:
|
|
|
|
$ref: 'v4/access_tokens.yaml#/accessTokens'
|
|
|
|
|
|
|
|
/v4/projects/{id}/access_tokens/{token_id}:
|
|
|
|
$ref: 'v4/access_tokens.yaml#/accessTokensRevoke'
|