-
Notifications
You must be signed in to change notification settings - Fork 23
/
stubs.json
48 lines (48 loc) · 922 Bytes
/
stubs.json
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
[
{
"method": "GET",
"path": "/",
"status": 200,
"response": {
"success": true
}
},
{
"method": "GET",
"path": "/users",
"status": 200,
"response": {
"success": true,
"ids": [1, 2, 3]
}
},
{
"method": "POST",
"path": "/users",
"status": 201,
"response": {
"success": true,
"id": 4
}
},
{
"method": "GET",
"path": "/users/:id",
"status": 200,
"response": {
"success": true,
"id": 5,
"name": "John Dough",
"email": "john@dough.com"
}
},
{
"method": "GET",
"path": "/admin",
"status": 401,
"response": {
"success": false,
"message": "unauthorized"
}
}
]