Receiving responses
This section provides instructions for receiving responses from the ALM Octane server.
Overview
Output is returned from the server in these ways:
-
Status codes. See Errors and status codes.
-
Response header. See Response header.
-
Response body. See Response body.
Response header
All supported output header fields follow the HTTP/1.1 protocol. For a list describing HTTP/1.1 header definitions, see Header Field Definitions. Below you can find a list of ALM Octane-supported response header fields:
Response body
By default, only the JSON representation is supported for all resource instances and resource collections.
JSON representations follow the ECMA-404 standard called "The JSON Data Interchange Format.”
Response bodies for GET operations
Responses for GET operations generally include:
-
The relevant ID and type fields, and other default fields. To see additional fields, see Select fields (fields).
-
A total_count of items returned by the GET operation.
You can set the maximum number of items that can be returned using the MAX_PAGE_SIZE configuration parameter. For details, see Setting configuration parameters with the REST API.
-
An exceeds_total_count value indicates if the maximum number of items that can be returned by the GET operation has been reached. If the value is true, the GET response is partial.
Response bodies for PUT, POST, and DELETE operations
Responses for GET operations generally include:
-
The relevant ID and type fields. To see additional fields, see Select fields (fields).
-
A total_count of items returned by the GET operation.
-
A business_error value might be included if an error is returned, and the error is of a business nature, such as a duplicate name, or an entity failing rule validation.
See also: