Debian Codegraph @

plugins/gnostic-go-generator/examples/v2.0/sample/sample.yaml

raw symbols SCIP
1 swagger: '2.0'
2 schemes:
3 - https
4 host: sample.io
5 basePath: /
6 info:
7 title: sample.io
8 version: '1.0'
9 consumes:
10 - application/json
11 produces:
12 - application/json;charset=UTF-8
13 securityDefinitions:
14 api_key:
15 in: query
16 name: key
17 type: apiKey
18 paths:
19 /sample/{id}:
20 get:
21 operationId: "GetSample"
22 parameters:
23 - description: identifier
24 in: path
25 name: id
26 required: true
27 type: string
28 responses:
29 '200':
30 description: sample response
31 schema:
32 $ref: '#/definitions/Sample'
33 '401':
34 description: User doesn't have a valid session.
35 schema:
36 $ref: '#/definitions/APIError'
37 '404':
38 description: Unable to find supplied extractor ID.
39 schema:
40 $ref: '#/definitions/APIError'
41 security:
42 - api_key: []
43 summary: Get a sample response
44 tags:
45 - sample
46 - demo
47 definitions:
48 APIError:
49 properties:
50 code:
51 description: Internal error code
52 format: int
53 type: integer
54 message:
55 description: A message containing a brief description of the error
56 type: string
57 type: object
58 Sample:
59 properties:
60 id:
61 type: string
62 thing:
63 type: object
64 count:
65 format: int32
66 type: integer
67 type: object