-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.yaml
More file actions
29 lines (24 loc) · 686 Bytes
/
api.yaml
File metadata and controls
29 lines (24 loc) · 686 Bytes
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
name: JSON Placeholder API
base_url: https://jsonplaceholder.typicode.com
endpoints:
- todo:
GET /todos:
summary: 'Get all todos'
data:
type: Array
GET /todos/{id}:
summary: 'Get todo by id'
data:
type: Object
POST /todos:
summary: 'Add todo'
data:
type: Object
PATCH /todos/{id}:
summary: 'Update todo by id'
data:
type: Object
DELETE /todos/{id}:
summary: 'Delete todo by id'
data:
type: Object