Atom feed of this document
 
 
 

 3.1. Request/Response Types

The Cloud Authentication API supports both the JSON and XML data serialization formats. The request format is specified using the Content-Type header and is required for operations that have a request body. The response format can be specified in requests either by using the Accept header or by adding an .xml or .json extension to the request URI. Note that it is possible for a response to be serialized using a format different from the request. If no response format is specified, JSON is the default. If conflicting formats are specified using both an Accept header and a query extension, the query extension takes precedence.

Table 3.1. Response Types
Format Accept Header Query Extension Default
JSON application/json .json Yes
XML application/xml .xml No