[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] Commented: (ODATA-351) Define ID, ReadLink and EditLink in Part 1: Protocol, define representation in Atom and JSON
[ http://tools.oasis-open.org/issues/browse/ODATA-351?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33341#action_33341 ] Michael Pizzo commented on ODATA-351: ------------------------------------- Alternate proposal: For JSON: -We write the id for the object if it does not follow convention AND key values are not included OR full metadata is specified -We write odata.id=null for "transient" entities -We write the editlink if entry is updatable and (editlink is different from the id OR full metadata) -We write the readlink if entry is read-only and (readlink is different from id OR full metadata) -We don't write readlinks, editlinks, or ids for feeds For ATOM -We remove the selflink from feeds -We allow an empty <id> element for transient entities (or, if we think that would break atom parsers, we define a naming pattern, i.e. <id>odata.transient;{some-generated-unique-identifier-to-not-break-atom-parsers}</id> -We write editlink if, and only if the entry is updatable -We write readlink if, and only if, the entry is read-only -We continue to write an <id> for the feed, and say it uniquely identifies the collection from which the feed was generated. > Define ID, ReadLink and EditLink in Part 1: Protocol, define representation in Atom and JSON > -------------------------------------------------------------------------------------------- > > Key: ODATA-351 > URL: http://tools.oasis-open.org/issues/browse/ODATA-351 > Project: OASIS Open Data Protocol (OData) TC > Issue Type: Improvement > Components: OData ATOM Format , OData JSON Format, OData Protocol > Affects Versions: V4.0_WD01, V4.0_CSD01 > Environment: [Proposed] > Reporter: Ralf Handl > Fix For: V4.0_CSD02 > > > In certain situations, especially Data Aggregation, we need the concept of "transient" entities and feeds in addition to the already defined "addressable" entities and feeds. > Protocol should define the concepts ID, ReadLink and EditLink. > Restrictions due to Atom and AtomPub > - ID required, MUST be IRI > - Feed: MAY have Self-Link to re-retrieve THIS feed > - Entry > -- Links are optional > -- <link rel="self"> identifies resource equivalent to current resource > -- AtomPub: <link rel="edit"> can be used to retrieve, update, and delete the Resource represented by that Entry -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]