1 Commits

Author SHA1 Message Date
Morten Olsen
cef969dfd6 feat: add javascript code block support (#13) 2025-05-19 10:28:57 +02:00

View File

@@ -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