Files
http.md/docs/examples/with-template.md
Morten Olsen a92679f13a init
2025-05-18 19:28:10 +02:00

17 lines
367 B
Markdown

```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}