mirror of
https://github.com/morten-olsen/http.md.git
synced 2026-02-08 00:46:28 +01:00
init
This commit is contained in:
16
docs/examples/with-template.md
Normal file
16
docs/examples/with-template.md
Normal file
@@ -0,0 +1,16 @@
|
||||
```http id=createItem json
|
||||
POST https://httpbin.org/post
|
||||
Content-Type: application/json
|
||||
|
||||
{"name": "My New Item"}
|
||||
```
|
||||
|
||||
The new item ID is: {{responses.createItem.body.json.name}}
|
||||
|
||||
Now, let's fetch the item using a (mocked) ID from the response:
|
||||
|
||||
```http id=fetchItem
|
||||
GET https://httpbin.org/anything/{{responses.createItem.body.json.name}}
|
||||
```
|
||||
|
||||
::response{#fetchItem}
|
||||
Reference in New Issue
Block a user