Request-less communication

Use when you need to output static content

When you need the module to output some static (or computed) content, you can use the request-less/static mode by omitting the URL and specifying only the response.output directives.

Specification

You can mix static definitions with normal requests and have more than two static requests.

When using this mode, the following directives are completely ignored: method, qs, headers, body, ca, typeand pagination - almost all request-related directives.

All response-related directives, such as response.output, response.wrapper, response.iterate are available, as well as response.valid and response.error. However, the latter directives lose their value in static mode.

Examples

Example 1:

{
    "response": {
        "output": {
            "id": "{{parameters.itemId}}",
            "text": "[{{parameters.itemId}}] {{parameters.text}}"
        }
    }
}

Last updated