-
Notifications
You must be signed in to change notification settings - Fork 1
/
mock.json
101 lines (101 loc) · 2.33 KB
/
mock.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[
{
"httpRequest" : {
"method": "POST",
"path" : "/login",
"headers": {
"Content-Type": ["application/x-www-form-urlencoded; charset=UTF-8"]
},
"body": {
"type": "STRING",
"string": "username=john&password=john",
"contentType" : "application/x-www-form-urlencoded; charset=UTF-8"
}
},
"httpResponse" : {
"body": "<html><head><meta name=\"trackId\" content=\"19293921933\"></head><body></body</html>",
"cookies": {
"sessionId" : "055CA455-1DF7-45BB-8535-4F83E7266092"
}
},
"times": {
"unlimited": true
},
"timeToLive": {
"unlimited": true
}
},
{
"httpRequest" : {
"method": "POST",
"path" : "/api/books/234/comments",
"headers": {
"Content-Type": ["application/json"]
},
"cookies": {
"sessionId" : "055CA455-1DF7-45BB-8535-4F83E7266092"
}
},
"httpResponse" : {
"statusCode": 200,
"body": "{\"Success\": True}"
},
"times": {
"unlimited": true
},
"timeToLive": {
"unlimited": true
}
},
{
"httpRequest": {
"method": "GET",
"path": "/api/books/234",
"cookies": {
"sessionId" : "055CA455-1DF7-45BB-8535-4F83E7266092"
}
},
"httpResponse": {
"body": "{\"id\": 234, \"title\": \"Book number 234\", \"author\": {\"id\": 523, \"name\": \"Author Name\"}}",
"delay": {
"timeUnit": "MILLISECONDS",
"value": 550
}
}
},
{
"httpRequest": {
"method": "GET",
"path": "/api/books",
"queryStringParameters": {
"limit": [ "[0-9]+" ]
},
"cookies": {
"sessionId" : "055CA455-1DF7-45BB-8535-4F83E7266092"
}
},
"httpResponse": {
"body": "[{\"id\": 234, \"title\": \"Book number 234\"},{\"id\": 432, \"title\": \"Book number 432\"}]",
"delay": {
"timeUnit": "MILLISECONDS",
"value": 750
}
}
},
{
"httpRequest": {
"method": "GET",
"path": "/api/authors/523",
"cookies": {
"sessionId" : "055CA455-1DF7-45BB-8535-4F83E7266092"
}
},
"httpResponse": {
"body": "{\"id\": 523, \"name\": \"Author Name\", \"bio\": \"Author bio\"}",
"delay": {
"timeUnit": "MILLISECONDS",
"value": 500
}
}
}
]