[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] Updated: (ODATA-156) Describe behavior when accessing related entities
[ http://tools.oasis-open.org/issues/browse/ODATA-156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralf Handl updated ODATA-156:
-----------------------------
Proposal:
Add subsection "Requesting Related Entities" to section 10.2 describing the behavior when following navigation properties:
- following a to-many relationship will always result in a feed document. The feed is empty if no entities are actually related
- following a to-one relationship will always result in an entity document
- following a to-zero-or-one relationship will result in an entity document if something is related, and a 204 No Content response if nothing is related
Extend subsection 10.2.4 Requesting $links between Entities:
If the navigation property has cardinality zero-or-one and no entity is associated, the service SHOULD return 404 Not Found.
For the case of a zero-to-one relation that currently points to nothing it might be worth describing the subtle difference between accessing the related entity itself (204 No Content = it is empty) and accessing the link to the related entity (404 Not Found = it does not exist).
was:
Add subsection "Requesting Related Entities" to section 10.2 describing the behavior when following navigation properties:
- following a to-many relationship will always result in a feed document. The feed is empty if no entities are actually related
- following a to-one relationship will always result in an entity document
- following a to-zero-or-one relationship will result in an entity document if something is related, and a 204 No Content response if nothing is related
Extend subsection 10.2.4 Requesting $lings between Entities:
If the navigation property has cardinality zero-or-one and no entity is associated, the service SHOULD return 404 Not Found.
For the case of a zero-to-one relation that currently points to nothing it might be worth describing the subtle difference between accessing the related entity itself (204 No Content = it is empty) and accessing the link to the related entity (404 Not Found = it does not exist).
> Describe behavior when accessing related entities
> -------------------------------------------------
>
> Key: ODATA-156
> URL: http://tools.oasis-open.org/issues/browse/ODATA-156
> Project: OASIS Open Data Protocol (OData) TC
> Issue Type: Improvement
> Components: OData Protocol v1.0
> Affects Versions: WD01
> Environment: [Proposed]
> Reporter: Ralf Handl
> Fix For: WD01
>
>
--
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]