-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyahr.yaml
51 lines (49 loc) · 1.11 KB
/
yahr.yaml
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
requests:
httpbin:
host: httpbin.org
requests:
get:
path: /get
queryparams: # this sucks - need to figure out how to have it be query_params
test: test
get200:
path: /status/200
get_status:
path: /status/:status
post:
method: post
path: /post
payload: {"hello": "world", "id": 487} # obv. posting IDs is unlikely, but it's good for examples
put:
method: put
path: /put
payload:
hello: world
patch:
method: patch
path: /patch
payload:
patch: param
delete:
method: delete
path: /delete
payload: {"delete": "param"}
# bad:
# method: bad
local:
scheme: http
host: localhost:8080
headers:
Authorization: Bearer {{ .PRIVATE_SERVER_ENV_VAR }}
requests:
get:
path: /get
pirate:
host: pirate.monkeyness.com
requests:
insult:
path: /api/insult
translate:
path: /api/translate
queryparams:
english: where is the nearest restroom