api:
flow:
- static:
contentType: application/json
pretty: true
src: { "status": "ok" }
api:
flow:
- static:
contentType: application/json
pretty: true
src: { "status": "ok" }
Syntax
static:
charset: <string>
contentType: <string>
location: <string>
pretty: <boolean>
src: <string>static: charset: <string> contentType: <string> location: <string> pretty: <boolean> src: <string>
Attributes
| Name | Required | Default | Description | Examples |
|---|---|---|---|---|
| charset | false | UTF-8 | Encoding of the template text. | UTF-16, iso-8859-1 |
| contentType | false | text/plain | Content-Type of the generated body content. | application/json |
| location | false | N/A | A file or URL location where the content that should be set as body could be found | conf/body.txt |
| pretty | false | false | Format the content of the template. Depending on the contentType the a formatter for JSON, XML or plain text is used. | true |
| src | false | - | - | - |