Media Types

From Delft Solutions
Revision as of 09:10, 30 November 2020 by Thexa4 (talk | contribs) (Created page with "A Media Type is a description of a file format plus a description of the interactions a client can make when viewing the file. Media Types are referenced using their identifie...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

A Media Type is a description of a file format plus a description of the interactions a client can make when viewing the file. Media Types are referenced using their identifier. In online documentation the term Media Type is often used to mean either the Media Type description or the Media Type identifier.

A simple example of a media type is the GIF format, identified using image/gif. It has no interactions (it doesn't link to anything) and has a specification that tells clients how they should display it.

Identifiers

Media Type identifiers are constructed using a tree part, a subtype and optionally a suffix. A full example is: application/vnd.delftsolutions.contact_us.v1+json. Here the tree is application, the subtype is vnd.delftsolutions.contact_us.v1 and the suffix is json.