CompositeApi

Functions for composite API

Methods

P_custom_header(name, value)

Set an HTTP header for the response of a composite API

Parameters:
Name Type Description
name string Name of the header
value string Value of the header

set_status(code, name, description)

Set the return HTTP status of a composite API.

Parameters:
Name Type Argument Description
code integer Numerical value of the code. It is strongly recommended to use a valid HTTP code. See the W3C specification for more information on status code standard definition.
name string <optional>
Customized name of the status
description string <optional>
Customized description for the status
See:
Example
${set_status(200)}
		${set_status(200,"Success","Your own description")}