1 | version: 1
|
2 | endpoint: 'http://jsonplaceholder.typicode.com'
|
3 |
|
4 | environment:
|
5 | the:
|
6 | post: 1
|
7 |
|
8 | defaults:
|
9 | headers:
|
10 | hello: $posts.body.0.userId
|
11 |
|
12 | GET /posts/$env.the.post: get-post
|
13 |
|
14 | GET /posts/:
|
15 | alias: posts
|
16 | headers:
|
17 | hello: false
|
18 |
|
19 | POST /posts/:
|
20 | alias: new-post
|
21 | documentation:
|
22 | title: New Post
|
23 |
|
24 | GET /users/$posts.body.0.userId:
|
25 | alias: post-user
|
26 | documentation:
|
27 | description: Fetches the user for a give post.
|
28 | params:
|
29 | hello: 'world'
|