-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathroutes_example.txt
44 lines (44 loc) · 899 Bytes
/
routes_example.txt
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
module.exports [{
name: "users",
request: {
path: "/users",
method: "get",
headers: {
"Accepts": "application/json"
},
queryString: {
"s": "Wire",
"q": {
matches: "(.+)xx"
}
},
"cookies": {
"xpto": "foo",
"foo": {
"matches": "xxx"
}
},
"jsonBody": {
foo: "bar"
},
"rawBody": "xxx",
ignoreArrayOrder: false,
ignoreExtraElements: false,
auth: ["user", "password"],
auth: {
"username": "luis",
password: "pass"
},
},
response {
status: 200,
headers: {
"foo": "bar"
},
cookies: {
"foo": "bar"
},
jsonBody: {},
body: ""
}
}]