UNPKG

488 BYAMLView Raw
1version: 1
2endpoint: 'http://jsonplaceholder.typicode.com'
3
4environment:
5 the:
6 post: 1
7
8defaults:
9 headers:
10 hello: $posts.body.0.userId
11
12GET /posts/$env.the.post: get-post
13
14GET /posts/:
15 alias: posts
16 headers:
17 hello: false
18
19POST /posts/:
20 alias: new-post
21 documentation:
22 title: New Post
23
24GET /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'