-
Notifications
You must be signed in to change notification settings - Fork 59
Description
The application/json media type (formerly ‘MIME type)’ is way too generic. It may cause clients trying to auto-discovery JSONFeeds to fetch several irrelevant JSON documents that may be linked from a document. JSONFeed calls for the introduction of a new media type so clients don’t need to download a ton of other JSON documents in an effort to discover JSONFeeds.
I suggest changing to application/feed+json (That is: type + underlying structure). Another example of this is type of media type is application/ld+json for the JSON for Linking Data or even application/atom+xml for Atom syndication feeds.
The new auto-discovery protocol would look like this:
<link rel="alternate" type="application/feed+json" href="https://example.org/feed.json" />
This would also allow for HTTP content negotation. Client sends Accept: application/feed+json,application/atom+xml;q=0.8, and the server could then negotiate and return JSONfeed.
Note that media types should be registered (not required, but grants legitimacy to the standard). The process is defined in RFC 6838.
See also issue #73.