[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] Commented: (ODATA-149) Self-link for rleated and inlined feeds
[ http://tools.oasis-open.org/issues/browse/ODATA-149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31514#action_31514 ] Michael Pizzo commented on ODATA-149: ------------------------------------- The syntax of the URL should be up to the service, but we should define the *semantics* of the URL. In the case of $expand, it does seem like the inline result is specifically the collection of related entities and should be relative to the parent (i.e., ~/Customers(1)/Orders). To add to the collection of related entities you would post to this url. I can see the argument for making ~/Customers(1)/Orders consistent, although I could also see just saying that the result is a collection of entities from the root entityset (Orders) that just happen to all be related to the same entity (Customers(1)), in the same way ~/Orders?$filter=Customer/CustId eq 1 would return ~/Orders for the self link of the feed. > Self-link for rleated and inlined feeds > --------------------------------------- > > Key: ODATA-149 > URL: http://tools.oasis-open.org/issues/browse/ODATA-149 > Project: OASIS Open Data Protocol (OData) TC > Issue Type: Improvement > Components: OData ATOM Format v1.0 > Affects Versions: WD01 > Environment: [Proposed] > Reporter: Ralf Handl > Fix For: WD01 > > > Section 5.2.4 states: A self link is represented as an atom:link with a rel attribute of "self" and an href that can be used to retrieve the feed from which the current entries are taken. > Which feed is meant in the case of related or inlined content, e.g. > GET ~/Customers(1)/Orders > GET ~/Customers(1)?$expand=Orders > Should the self-link be ~/Orders or rather ~/Customers(1)/Orders? It should be the same for both request types. -- 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]