Debian Codegraph @

plugins/gnostic-go-generator/examples/v2.0/apis_guru/swagger.yaml

raw symbols SCIP
1 swagger: '2.0'
2 schemes:
3 - https
4 host: api.apis.guru
5 basePath: /v2/
6 info:
7 contact:
8 email: [email protected]
9 name: APIs.guru
10 url: 'http://APIs.guru'
11 description: |
12 Wikipedia for Web APIs. Repository of API specs in OpenAPI(fka Swagger) 2.0 format.
13
14 **Warning**: If you want to be notified about changes in advance please subscribe to our [Gitter channel](https://gitter.im/APIs-guru/api-models).
15
16 Client sample: [[Demo]](https://apis.guru/simple-ui) [[Repo]](https://github.com/APIs-guru/simple-ui)
17 license:
18 name: CC0 1.0
19 url: 'https://github.com/APIs-guru/api-models#licenses'
20 title: APIs.guru
21 version: '2.0'
22 x-logo:
23 url: 'https://apis.guru/branding/logo_vertical.svg'
24 externalDocs:
25 url: 'https://github.com/APIs-guru/api-models/blob/master/API.md'
26 produces:
27 - application/json
28 security: []
29 paths:
30 /list.json:
31 get:
32 description: |
33 List all APIs in the directory.
34 Returns links to OpenAPI specification for each API in the directory.
35 If API exist in multiply versions `preferred` one is explicitly marked.
36
37 Some basic info from OpenAPI spec is cached inside each object.
38 This allows to generate some simple views without need to fetch OpenAPI spec for each API.
39 operationId: listAPIs
40 responses:
41 '200':
42 description: OK
43 schema:
44 $ref: '#/definitions/APIs'
45 summary: List all APIs
46 /metrics.json:
47 get:
48 description: |
49 Some basic metrics for the entire directory.
50 Just stunning numbers to put on a front page and are intended purely for WoW effect :)
51 operationId: getMetrics
52 responses:
53 '200':
54 description: OK
55 schema:
56 $ref: '#/definitions/Metrics'
57 summary: Get basic metrics
58 definitions:
59 API:
60 additionalProperties: false
61 description: Meta information about API
62 properties:
63 added:
64 description: Timestamp when the API was first added to the directory
65 format: date-time
66 type: string
67 preferred:
68 description: Recommended version
69 type: string
70 versions:
71 additionalProperties:
72 $ref: '#/definitions/ApiVersion'
73 description: List of supported versions of the API
74 minProperties: 1
75 type: object
76 required:
77 - added
78 - preferred
79 - versions
80 type: object
81 APIs:
82 additionalProperties:
83 $ref: '#/definitions/API'
84 description: |
85 List of API details.
86 It is a JSON object with API IDs(`<provider>[:<service>]`) as keys.
87 example:
88 'googleapis.com:drive':
89 added: '2015-02-22T20:00:45.000Z'
90 preferred: v3
91 versions:
92 v2:
93 added: '2015-02-22T20:00:45.000Z'
94 info:
95 title: Drive
96 version: v2
97 x-apiClientRegistration:
98 url: 'https://console.developers.google.com'
99 x-logo:
100 url: 'https://api.apis.guru/v2/cache/logo/https_www.gstatic.com_images_icons_material_product_2x_drive_32dp.png'
101 x-origin:
102 format: google
103 url: 'https://www.googleapis.com/discovery/v1/apis/drive/v2/rest'
104 version: v1
105 x-preferred: false
106 x-providerName: googleapis.com
107 x-serviceName: drive
108 swaggerUrl: 'https://api.apis.guru/v2/specs/googleapis.com/drive/v2/swagger.json'
109 swaggerYamlUrl: 'https://api.apis.guru/v2/specs/googleapis.com/drive/v2/swagger.yaml'
110 updated: '2016-06-17T00:21:44.000Z'
111 v3:
112 added: '2015-12-12T00:25:13.000Z'
113 info:
114 title: Drive
115 version: v3
116 x-apiClientRegistration:
117 url: 'https://console.developers.google.com'
118 x-logo:
119 url: 'https://api.apis.guru/v2/cache/logo/https_www.gstatic.com_images_icons_material_product_2x_drive_32dp.png'
120 x-origin:
121 format: google
122 url: 'https://www.googleapis.com/discovery/v1/apis/drive/v3/rest'
123 version: v1
124 x-preferred: true
125 x-providerName: googleapis.com
126 x-serviceName: drive
127 swaggerUrl: 'https://api.apis.guru/v2/specs/googleapis.com/drive/v3/swagger.json'
128 swaggerYamlUrl: 'https://api.apis.guru/v2/specs/googleapis.com/drive/v3/swagger.yaml'
129 updated: '2016-06-17T00:21:44.000Z'
130 minProperties: 1
131 type: object
132 ApiVersion:
133 additionalProperties: false
134 properties:
135 added:
136 description: Timestamp when the version was added
137 format: date-time
138 type: string
139 info:
140 description: Copy of `info` section from Swagger spec
141 minProperties: 1
142 type: object
143 swaggerUrl:
144 description: URL to Swagger spec in JSON format
145 format: url
146 type: string
147 swaggerYamlUrl:
148 description: URL to Swagger spec in YAML format
149 format: url
150 type: string
151 updated:
152 description: Timestamp when the version was updated
153 format: date-time
154 type: string
155 required:
156 - added
157 - updated
158 - swaggerUrl
159 - swaggerYamlUrl
160 - info
161 type: object
162 Metrics:
163 additionalProperties: false
164 description: List of basic metrics
165 example:
166 numAPIs: 238
167 numEndpoints: 6448
168 numSpecs: 302
169 properties:
170 numAPIs:
171 description: Number of APIs
172 minimum: 1
173 type: integer
174 numEndpoints:
175 description: Total number of endpoints inside all specifications
176 minimum: 1
177 type: integer
178 numSpecs:
179 description: Number of API specifications including different versions of the same API
180 minimum: 1
181 type: integer
182 required:
183 - numSpecs
184 - numAPIs
185 - numEndpoints
186 type: object