Dot (.) Notation Syntax for Validation Request-Response Generation Flow

This topic describes how to validate requests in response flow using the Dot (.) notation syntax.

This table describes the context objects and the associated dot (.) notation with examples.

Context object Description Dot (.) notation Example

Connection Properties

Properties for connection configuration.

.connectionProperties

.connectionProperties.baseUrl

Request

The contents of the inbound request are:
  • method

    Uppercase HTTP method.

  • uri

    Request URL

  • headers

    Map of headers. Ensure that the header key is in lower case. Use text for a single value and use an array if there are multiple values.

  • query

    Map of query parameters. Use text for a single value and use an array if there are multiple values.

  • body

    Request body as string.

.request

.request.body|fromjson

For a single value:

.request.headers.token .request.query.\"x-custom-id\"

For an array:

.request.headers.\"x-custom-token\"[0]

.request.query.\"x-custom-id\"[0]

Output

The output represents the response. Set the flow output in this context object.

  • status

    HTTP status code(int)

  • body

    Response body. If it is not a JSON data, then set it to single text node.

  • headers

    Map of headers. Use text for a single value and use an array if there are multiple values.

.output

.output.status