[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] (ODATA-986) Support POST to cast segment following a collection
[ https://issues.oasis-open.org/browse/ODATA-986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Pizzo updated ODATA-986: -------------------------------- Proposal: Support posting/deleting to a type cast segment following a collection. For Post, the payload must be an instance of the type specified by the cast segment (or a type derived from the type specified by the cast segment) and does not require the @odata.type attribute unless it is of a derived type of the type specified in the type cast segment. For PATCH/DELETE, only those instances matching or derived from the cast segment are updated/deleted. was:Support posting to a type cast segment following a collection. The payload must be an instance of the type specified by the cast segment (or a type derived from the type specified by the cast segment) and does not require the @odata.type attribute unless it is of a derived type of the type specified in the type cast segment. > Support POST to cast segment following a collection > --------------------------------------------------- > > Key: ODATA-986 > URL: https://issues.oasis-open.org/browse/ODATA-986 > Project: OASIS Open Data Protocol (OData) TC > Issue Type: Bug > Components: OData Protocol, OData URL Conventions > Affects Versions: V4.0_ERRATA03 > Environment: [Proposed] > Reporter: Michael Pizzo > Fix For: V4.01_WD01 > > > Today we support: > GET ~Employees/ns.Manager > in order to retrieve only those employees from the Employees entity set that are managers. > It would be consistent to support: > POST ~Employees/ns.Manager > To add a manager to the Employees entity set without having to specify in the payload that the employee was an @odata.type=ns.Manager > This would be particularly useful in cases where the cast segment specified a "marker type" that was trivially derived from the collection type. -- This message was sent by Atlassian JIRA (v6.2.2#6258)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]