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:
22
docs/examples/with-multiple-requests.md
Normal file
22
docs/examples/with-multiple-requests.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Document with Multiple Requests
|
||||
|
||||
First, create a resource:
|
||||
|
||||
```http id=createUser
|
||||
POST https://httpbin.org/post
|
||||
Content-Type: application/json
|
||||
|
||||
{"username": "alpha"}
|
||||
```
|
||||
|
||||
Then, fetch a different resource:
|
||||
|
||||
```http id=getItem
|
||||
GET https://httpbin.org/get?item=123
|
||||
```
|
||||
|
||||
Response from creating the user:
|
||||
::response{#createUser}
|
||||
|
||||
Response from getting the item:
|
||||
::response{#getItem}
|
||||
Reference in New Issue
Block a user