Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-07-20 18:40:28 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-07-20 18:40:28 +0300
commitb595cb0c1dec83de5bdee18284abe86614bed33b (patch)
tree8c3d4540f193c5ff98019352f554e921b3a41a72 /doc/api/openapi
parent2f9104a328fc8a4bddeaa4627b595166d24671d0 (diff)
Add latest changes from gitlab-org/gitlab@15-2-stable-eev15.2.0-rc42
Diffstat (limited to 'doc/api/openapi')
-rw-r--r--doc/api/openapi/openapi.yaml12
-rw-r--r--doc/api/openapi/v4/metadata.yaml43
2 files changed, 52 insertions, 3 deletions
diff --git a/doc/api/openapi/openapi.yaml b/doc/api/openapi/openapi.yaml
index cc6a161c783..a3a0485428d 100644
--- a/doc/api/openapi/openapi.yaml
+++ b/doc/api/openapi/openapi.yaml
@@ -1,5 +1,7 @@
openapi: 3.0.0
tags:
+ - name: metadata
+ description: Metadata of the GitLab instance
- name: version
description: Version
- name: access_requests
@@ -39,6 +41,10 @@ components:
name: Private-Token
paths:
+ # METADATA
+ /v4/metadata:
+ $ref: 'v4/metadata.yaml'
+
# VERSION
/v4/version:
$ref: 'v4/version.yaml'
@@ -49,7 +55,7 @@ paths:
/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'
@@ -59,7 +65,7 @@ paths:
/v4/groups/{id}/access_requests/{user_id}/approve:
$ref: 'v4/access_requests.yaml#/accessRequestsGroupsApprove'
-
+
/v4/groups/{id}/access_requests/{user_id}:
$ref: 'v4/access_requests.yaml#/accessRequestsGroupsDeny'
@@ -68,4 +74,4 @@ paths:
$ref: 'v4/access_tokens.yaml#/accessTokens'
/v4/projects/{id}/access_tokens/{token_id}:
- $ref: 'v4/access_tokens.yaml#/accessTokensRevoke' \ No newline at end of file
+ $ref: 'v4/access_tokens.yaml#/accessTokensRevoke'
diff --git a/doc/api/openapi/v4/metadata.yaml b/doc/api/openapi/v4/metadata.yaml
new file mode 100644
index 00000000000..6a5ef9f3355
--- /dev/null
+++ b/doc/api/openapi/v4/metadata.yaml
@@ -0,0 +1,43 @@
+# Markdown documentation: https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/api/metadata.md
+
+get:
+ tags:
+ - metadata
+ summary: "Retrieve metadata information for this GitLab instance."
+ operationId: "getMetadata"
+ responses:
+ "401":
+ description: "unauthorized operation"
+ "200":
+ description: "successful operation"
+ content:
+ "application/json":
+ schema:
+ title: "MetadataResponse"
+ type: "object"
+ properties:
+ version:
+ type: "string"
+ revision:
+ type: "string"
+ kas:
+ type: "object"
+ properties:
+ enabled:
+ type: "boolean"
+ externalUrl:
+ type: "string"
+ nullable: true
+ version:
+ type: "string"
+ nullable: true
+ examples:
+ Example:
+ value:
+ version: "15.0-pre"
+ revision: "c401a659d0c"
+ kas:
+ enabled: true
+ externalUrl: "grpc://gitlab.example.com:8150"
+ version: "15.0.0"
+