Media Types

In MidoNet REST API, the resources are encoded in JSON, as specified in RFC 4267. Each type of resource has its own media-type, which matches the pattern:

application/vnd.org.midonet.xxxxx-v#+json

where xxxxx represents the unique resource identifier and # is the media type’s version number. For most media types the version number will be 1, but several media types have additional versions. See the sections on individual media types for available versions. Starting with MidoNet v5.0, the REST API discontinued support for old media type versions, and in general you must use the newest available version.

When doing a GET on a particular resource, specify the media type in the Accept header field. When doing a POST or PUT on a particular resource, specify the media type in the Content-Type header field. This also applies when you are operating on collections as well.

Questions? Discuss on Mailing Lists or Chat.
Found an error? Report a bug.