OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

odata message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: [OASIS Issue Tracker] (ODATA-836) Allow applying actions to a filtered collection of entities

     [ https://issues.oasis-open.org/browse/ODATA-836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Pizzo updated ODATA-836:

Consider allowing POST in combination with $apply to apply an action to a filtered set:

POST Products?$apply=filter(Age gt 3)/Special.Discount

Either add a path segment that takes a boolean expression, optionally deferred to a parameter alias, or allow POST in combination with $apply

POST Products/$filter(Age gt 3)/Special.Discount
POST Products/$filter(@f)/Special.Discount?@f=Age  gt 3

POST Products?$apply=filter(Age gt 3)/Special.Discount

Consider adding path equivalents of other query options:

POST /Orders/$filter(@f)/$top(5)/Ship?@f=Details/ShippingDate lt now()

> Allow applying actions to a filtered collection of entities
> -----------------------------------------------------------
>                 Key: ODATA-836
>                 URL: https://issues.oasis-open.org/browse/ODATA-836
>             Project: OASIS Open Data Protocol (OData) TC
>          Issue Type: Improvement
>          Components: OData Extension for Data Aggregation, OData URL Conventions
>    Affects Versions: V4.0_ERRATA02, V4.0_CS01
>         Environment: Set Operations
>            Reporter: Ralf Handl
>              Labels: Extension
> Currently it is not possible to filter an entity set and then apply an action to the entities passing the filter, e.g. discount all products that have been on the shelf for more than three months.

This message was sent by Atlassian JIRA

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]