-
Notifications
You must be signed in to change notification settings - Fork 0
/
mokk.yml
51 lines (44 loc) · 1.2 KB
/
mokk.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
name: Mokk Users Server
options:
printRequestBody: false
routes:
- path: users
method: GET
statusCode: 200
response: '{"status":"Success","users":[{"name":"MockZilla"}]}'
- path: users/:user
method: GET
statusCode: 200
response: '{"status":"Success","user":{"id":1,"name":"MockZilla"}}'
variants:
- params:
user: 123
statusCode: 200
response: '{"status":"Success","user":{"id":123, "name":"MockZilla Jr."}}'
- params:
user: 999
statusCode: 404
response: '{"status":"Failure"}'
- path: users
method: POST
statusCode: 201
response: '{"status":"Success","user":{"name":"MockZilla Jr"}}'
delay: 500
- path: users/:user
method: PATCH
statusCode: 200
response: '{"status":"Success"}'
- path: users/:user
method: DELETE
statusCode: 204
response: '{}'
- path: users/:user/clients/:client
method: GET
statusCode: 200
response: '{"status":"Success","client":{"id":2,"name":"Mockodile"}}'
variants:
- params:
user: 123
client: 456
statusCode: 200
response: '{"status":"Success","client":{"id":456, "name":"Mockodile Jr"}}'