-
Notifications
You must be signed in to change notification settings - Fork 0
/
slumber.yml
48 lines (41 loc) · 1.23 KB
/
slumber.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
profiles:
development:
data:
todo_host: http://localhost:8080
chains:
auth_token:
source: !request
recipe: login
selector: $.token
requests:
list: !request
method: GET
url: "{{todo_host}}/todo"
todo-with-token: !request
method: POST
url: "{{todo_host}}/todo"
headers:
accept: application/json
authentication: !bearer "{{chains.auth_token}}"
body: !json { "description": "string", "done": true, "title": "string" }
todo-without-token: !request
method: POST
url: "{{todo_host}}/todo"
headers:
accept: application/json
body: !json { "description": "string", "done": true, "title": "string" }
anon: !request
method: POST
url: "{{todo_host}}/todo/anon"
headers:
accept: application/json
body: !json { "description": "string", "done": true, "title": "string" }
login: !request
method: POST
url: "{{todo_host}}/user/login"
headers:
accept: application/json
self: !request
method: GET
url: "{{todo_host}}/user/self"
authentication: !bearer "{{chains.auth_token}}"