Supported Media Types
Media types let you choose the format of the data you want to receive, defining the structure of the HTTP payloads exchanged between the server and the REST client. They allow a REST API to inform the client how to interpret the data in the payload.
Note:
Use theAccept
HTTP header in the client to specify the media types for the response from the server. You can specify
application/json
in the request accept header when a superset of all supported media types may be accepted in the response.
Media Type | Description |
---|---|
application/json |
Represents the format for describing the JSON data. |
application/schema+json |
Represents the format for describing the structure of JSON data. |
application/xml |
Represents the format for describing the XML data. |