forked from flasgger/flasgger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
officer_specs.yml
40 lines (39 loc) · 864 Bytes
/
officer_specs.yml
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
Officer creation endpoint
---
tags:
- officer
parameters:
- name: priority
in: path
type: integer
description: level of priority
required: true
default: 4
- name: body
in: body
required: true
schema:
id: Officer
required:
- name
- age
properties:
name:
type: string
description: The officer's name.
default: "James T. Kirk"
age:
type: integer
description: The officer's age (should be integer)
default: 138
tags:
type: array
description: optional list of tags
default: ["starfleet", "captain", "enterprise", "dead"]
items:
type: string
responses:
200:
description: The officer inserted in the database
schema:
$ref: '#/definitions/Officer'