Media types

Media types the form of the data contained within a resource representation.

There are two media to identify the different kinds of resources. It is specified in the Accept and Content-Type header's value for the request and in the response respectively.

Table 1. Media types
Media type Resources
application/yang-data+xml Represents the data resource derived from a YANG module in the XML format.
application/yang-data+json Represents any data resource derived from a YANG module in the JSON format.