
Format System Query Option ($format)
The $format System Query Option is used to return a response using the media type specified by the query option.
The following table lists valid values for the $format query string option:
$format Value | Response Media Type |
---|---|
xml | application/xml |
json | application/json |
For example, to return the /RecoveryLocations collection in the xml format, send the following request:
GET https://uwin2012r2.n.local:9899/v2/RecoveryLocations?$format=xml |
ячвпявыпр
|
The $format query option in a request URI takes precedence over the value specified in the Accept request header. That is, if you enter the application/json value in the Accept request header and the xml value in the $format query, VAO REST API will return the response in the application/xml format. |