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

openapi_v2.yaml « openapi « api « doc - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 59b21ecd048d77e9f6cf8517c50e85df2bacf30c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
info:
  title: GitLab API
  version: v4
swagger: '2.0'
produces:
- application/json
securityDefinitions:
  access_token_header:
    type: apiKey
    name: PRIVATE-TOKEN
    in: header
  access_token_query:
    type: apiKey
    name: private_token
    in: query
host: gitlab.com
tags:
- name: metadata
  description: Operations related to metadata of the GitLab instance
paths:
  "/api/v4/metadata":
    get:
      summary: Retrieve metadata information for this GitLab instance.
      description: This feature was introduced in GitLab 15.2.
      produces:
      - application/json
      responses:
        '200':
          description: successful operation
          schema:
            "$ref": "#/definitions/API_Entities_Metadata"
          examples:
            successful_response:
              value:
                version: 15.0-pre
                revision: c401a659d0c
                kas:
                  enabled: true
                  externalUrl: grpc://gitlab.example.com:8150
                  version: 15.0.0
        '401':
          description: unauthorized operation
      tags:
      - metadata
      operationId: getApiV4Metadata
  "/api/v4/version":
    get:
      summary: Get the version information of the GitLab instance.
      description: This feature was introduced in GitLab 8.13 and deprecated in 15.5.
        We recommend you instead use the Metadata API.
      produces:
      - application/json
      responses:
        '200':
          description: successful operation
          schema:
            "$ref": "#/definitions/API_Entities_Metadata"
          examples:
            Example:
              value:
                version: 15.0-pre
                revision: c401a659d0c
                kas:
                  enabled: true
                  externalUrl: grpc://gitlab.example.com:8150
                  version: 15.0.0
        '401':
          description: unauthorized operation
      tags:
      - metadata
      operationId: getApiV4Version
definitions:
  API_Entities_Metadata:
    type: object
    properties:
      version:
        type: string
      revision:
        type: string
      kas:
        type: object
        properties:
          enabled:
            type: boolean
          externalUrl:
            type: string
          version:
            type: string
    description: API_Entities_Metadata model