Debian Codegraph @

examples/officer_specs.yml

raw symbols SCIP
1 Officer creation endpoint
2 ---
3 tags:
4 - officer
5 parameters:
6 - name: priority
7 in: path
8 type: integer
9 description: level of priority
10 required: true
11 default: 4
12 - name: body
13 in: body
14 required: true
15 schema:
16 id: Officer
17 required:
18 - name
19 - age
20 properties:
21 name:
22 type: string
23 description: The officer's name.
24 default: "James T. Kirk"
25 age:
26 type: integer
27 description: The officer's age (should be integer)
28 default: 138
29 tags:
30 type: array
31 description: optional list of tags
32 default: ["starfleet", "captain", "enterprise", "dead"]
33 items:
34 type: string
35
36 responses:
37 200:
38 description: The officer inserted in the database
39 schema:
40 $ref: '#/definitions/Officer'