Media type is an application-specific format with a well-defined name represented in the form of an identifier. Media types are specified in the Accept and Content-Type header's value for the request and the response respectively.
Media types are specific to resources, allowing them to change independently and support formats that other resources do not.
Media type | Resources |
---|---|
application/vnd.base.resource+xml | Represents the high-level base resources such as configuration datastore and operational state resource. |
application/vnd.configuration.resource+xml | Represents resources defined for the configuration command derived from a YANG module. |
application/vnd.operational-state.resource+xml | Represents the operational-state resources defined in the YANG model |
application/vnd.operations.resource+xml | Represents the defined YANG-RPC operations. |
application/vnd.base.resource+json | Represents the high-level base resources such as configuration datastore and operational state resource. |
application/vnd.configuration.resource+json | Represents resources defined for the configuration command derived from a YANG module. |
application/vnd.operational-state.resource+json | Represents the operational-state resources defined in the YANG model |
application/vnd.yang.operation+json | Represents the defined YANG-RPC operations. |