1 | version: 1
|
2 |
|
3 | environment:
|
4 | the:
|
5 | post: 2
|
6 |
|
7 | defaults:
|
8 | headers:
|
9 | hello: 'Hello2'
|
10 |
|
11 | GET http://jsonplaceholder.typicode.com/posts/1:
|
12 | alias: a-post
|
13 | headers:
|
14 | hello: $jpa2:get-post.body.id
|
15 |
|
16 |
|
17 | hosts:
|
18 | - host: jpa
|
19 | endpoint: http://jsonplaceholder.typicode.com
|
20 | GET /posts/$env.the.post: get-post
|
21 | GET /users/$jpa:get-post.body.userId: hello
|
22 |
|
23 | - host: jpa2
|
24 | endpoint: http://jsonplaceholder.typicode.com
|
25 | defaults:
|
26 | headers: false
|
27 |
|
28 | GET /posts/$jpa:get-post.body.id:
|
29 | alias: get-post
|
30 |
|
31 |
|
32 |
|