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.23
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c7b9abf868 |
@@ -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
|
||||
```
|
||||
|
||||
The request to `/status/201` completed with status code: **{{{{response.status}}}}**.
|
||||
The request to `/status/201` completed with status code: **{{{response.status}}}**.
|
||||
````
|
||||
|
||||
## Managing Documents
|
||||
@@ -259,8 +259,8 @@ http.md build mydoc.md output.md -i baseUrl=https://api.production.example.com -
|
||||
|
||||
````markdown
|
||||
```http
|
||||
GET {{{{input.baseUrl}}}}/users/1
|
||||
Authorization: Bearer {{{{input.apiKey}}}}
|
||||
GET {{{input.baseUrl}}}/users/1
|
||||
Authorization: Bearer {{{input.apiKey}}}
|
||||
```
|
||||
|
||||
::response
|
||||
@@ -279,7 +279,7 @@ You can execute `javascript` blocks by adding a `run` option which allows progra
|
||||
<details>
|
||||
<summary>Output</summary>
|
||||
|
||||
::raw-md[./examples/with-javascript.md]{run}
|
||||
::raw-md[./examples/with-javascript.md]{render}
|
||||
|
||||
</details>
|
||||
|
||||
@@ -336,8 +336,8 @@ You can configure the behavior of each `http` code block by adding options to it
|
||||
|
||||
````markdown
|
||||
```http id=complexRequest,json,yaml,hidden
|
||||
POST {{{{input.apiEndpoint}}}}/data
|
||||
X-API-Key: {{{{input.apiKey}}}}
|
||||
POST {{{input.apiEndpoint}}}/data
|
||||
X-API-Key: {{{input.apiKey}}}
|
||||
Content-Type: application/json
|
||||
|
||||
# Request body written in YAML, will be converted to JSON
|
||||
|
||||
Reference in New Issue
Block a user