|
JSONFeed
Description of the JSON feed
IntroductionAside from the Atom feed, Atomico optionally serves a JSON feed if the client sends an Accept: application/json header. Although a few solutions for translating Atom to JSON exist (see references), Atomico serves a slightly different JSON representation which is dedicated to SDShare feeds. The main differences to the common Atom to JSON translations are:
DetailsCommon Feed Properties
Overview FeedThe overview feed inherits all common feed properties and adds no further properties aside from the requirement that the "links" array contains links to the collection feeds (the "rel" property is set to "http://www.egovpt.org/sdshare/collectionfeed"). Collection FeedThe collection feed inherits all common feed properties and may have optionally links to the dependencies of the collection in the "links" array (the "rel" property is set to "http://www.egovpt.org/sdshare/dependency"). Further it MUST have an entry which references the snapshots feed (the "rel" property of the link is set to "http://www.egovpt.org/sdshare/snapshotsfeed") and an entry which references the fragments feed (the "rel" property of the link is set to "http://www.egovpt.org/sdshare/fragmentsfeed"). Snapshots FeedThe snapshots feed inherits all common feed properties and adds the following fields:
All links which refer to snapshots must have a "type" field which specifies the media type of the referenced snapshot. Fragments FeedThe fragments feed inherits all common feed properties and adds the following field:
Fragment EntryAll fragment entries must have the following field:
All links which refer to fragments must have a "type" field which specifies the media type of the referenced fragment. Entry Properties
Link Properties
Author Properties
Generator Properties
References | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||