mirror of
https://github.com/morten-olsen/http.md.git
synced 2026-02-08 00:46:28 +01:00
Compare commits
1 Commits
feat/add-j
...
0.1.22
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cef969dfd6 |
@@ -211,7 +211,7 @@ _(Note: `httpbin.org/post` wraps the JSON sent in a "json" field in its response
|
|||||||
GET https://httpbin.org/status/201
|
GET https://httpbin.org/status/201
|
||||||
```
|
```
|
||||||
|
|
||||||
The request to `/status/201` completed with status code: **{{{{response.status}}}}**.
|
The request to `/status/201` completed with status code: **{{{response.status}}}**.
|
||||||
````
|
````
|
||||||
|
|
||||||
## Managing Documents
|
## Managing Documents
|
||||||
@@ -259,8 +259,8 @@ http.md build mydoc.md output.md -i baseUrl=https://api.production.example.com -
|
|||||||
|
|
||||||
````markdown
|
````markdown
|
||||||
```http
|
```http
|
||||||
GET {{{{input.baseUrl}}}}/users/1
|
GET {{{input.baseUrl}}}/users/1
|
||||||
Authorization: Bearer {{{{input.apiKey}}}}
|
Authorization: Bearer {{{input.apiKey}}}
|
||||||
```
|
```
|
||||||
|
|
||||||
::response
|
::response
|
||||||
@@ -336,8 +336,8 @@ You can configure the behavior of each `http` code block by adding options to it
|
|||||||
|
|
||||||
````markdown
|
````markdown
|
||||||
```http id=complexRequest,json,yaml,hidden
|
```http id=complexRequest,json,yaml,hidden
|
||||||
POST {{{{input.apiEndpoint}}}}/data
|
POST {{{input.apiEndpoint}}}/data
|
||||||
X-API-Key: {{{{input.apiKey}}}}
|
X-API-Key: {{{input.apiKey}}}
|
||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
|
|
||||||
# Request body written in YAML, will be converted to JSON
|
# Request body written in YAML, will be converted to JSON
|
||||||
|
|||||||
Reference in New Issue
Block a user