DEV Community

Cover image for Why learn... about Media Types

Why learn... about Media Types

David Wickes on April 10, 2019

Media types are used to communicate the type of data being sent over the web. They are used in an HTTP response to declare the type of content be...
Collapse
 
andersonjoseph profile image
Anderson. J

Great article, thanks!

Any practical use of create my own media types? Why invent them if I can return or send application/json?

Collapse
 
kayis profile image
K

API versioning and defining something JSON that has specific fields required etc.

Collapse
 
workingwebsites profile image
Lisa Armstrong

Thanks for ther clarification!
This is one of those things I see and use a lot, but never really understood how it works.

Collapse
 
gypsydave5 profile image
David Wickes

Thanks Lisa - I'm glad you found it useful.

Collapse
 
katieadamsdev profile image
Katie Adams

Absolutely brilliant article. Definitely feel that I've learnt something, and the Content Negotiation segment was really helpful.

Collapse
 
redfred7 profile image
Fred Heath

Very good article. I'm surprised by how many developers don't quite understand media-types.

Collapse
 
gypsydave5 profile image
David Wickes

Thank you for your kind words!