Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the application/vnd.github+json media type? [duplicate]

I was going through Github REST API v3 doc and found the media type application/vnd.github+json. I am familiar with traditional media types such as application/json, application/xml.

It seems to be that it is related to OpenAPI 3 specification. If I were to create my own media type, how would I go about creating one for a new a team which would be used by other teams?

like image 263
Ayman Arif Avatar asked Apr 22 '26 08:04

Ayman Arif


1 Answers

I believe application/vnd.github+json is just the custom media type that is used for the Github api. The difference being that application/vnd.github+json allows to specify the api version and the format of the data being returned. Having a custom media type is useful for versioning an api and is why this was made in the first place.

like image 163
David Ordaz Avatar answered Apr 30 '26 13:04

David Ordaz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!