-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yml
60 lines (60 loc) · 1.33 KB
/
swagger.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
openapi: 3.0.0
paths:
/groups:
get:
summary: Get all groups
parameters:
- in: query
name: limit
schema:
type: integer
required: true
description: The number of items to return
responses:
"200":
description: OK
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/Group"
/groups/{id}:
patch:
summary: Update a group
parameters:
- in: path
name: id
schema:
type: integer
required: true
description: The group id
- in: query
name: name
schema:
type: string
required: true
description: The group name
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/Group"
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/Group"
components:
schemas:
Group:
type: object
properties:
id:
type: integer
nullable: true
name:
type: string
nullable: true