6.5.1 Format of a response when the response is successfully acquired
The following describes the format of a response when the response is successfully acquired.
- Organization of this subsection
(1) Details of the response
The following describes the values returned as the response.
- Protocol version
-
The fixed value HTTP/1.1 is returned.
- Status code
-
A status code that indicates the processing result is returned. For details, see the description for each API.
- Text description of the status code
-
A text description of the status code that indicates the processing result is returned. Note that text descriptions of status codes might have been omitted.
- Response header
-
The following table lists and describes the response headers.
Table 6‒10: List of response headers Response header
Description
Cache-Control
These response headers control the cache of the response information.
Pragma
Expires
Content-Type
Response data format.
The fixed value application/json is returned.
- Message body
-
Output information is returned in JSON format. UTF-8 is used for the character encoding.
(2) Example response (message body)
The following shows an example response (message body) for when the unit list acquisition API is issued and the response is successfully acquired:
{ "statuses": [ { "definition": { "unitName": "/jobgroupA/jobnetA", "simpleUnitName": "jobnetA", "unitComment": "test", ... }, "unitStatus": { "unitName": "/jobgroupA/jobnetA", "simpleUnitName": "jobnetA", "execID": "@A101", ... }, "release": { "releaseID": "AJS_AUTO", ... } } ], "all": true }