Add support for mapping of query string name value pairs to a OData $filter expression.
This would allow
1) Simple queries to be used with OData
2) Increaed interoperability with existing urls that are in use for a site.
Examples
http://localhost/api/Orders?id=1
http://localhost/api/Orders?id=1,2,3,4
http://localhost/api/Orders?type=Pending,Confirmed
http://localhost/api/Orders?type=P%
Translations
http://localhost/api/Orders?$filter=(id eq 1)
http://localhost/api/Orders?$filter=((id eq 1) or (id eq 2) or (id eq 3))
http://localhost/api/Orders?$filter=((type eq 'Pending') or (type eq 'Confirmed'))
http://localhost/api/Orders?$filter=startswith(type e, 'P')
Support for int, double, date, string
Support for simple lists delimited by comma which translates to or clause
Optionally support wildcard queries with % syntax
Comments: The OData standards org is considering this for a future version of the OData standard (post v4). In the meantime you can implement support for this using a message handler to transform the URI.
This would allow
1) Simple queries to be used with OData
2) Increaed interoperability with existing urls that are in use for a site.
Examples
http://localhost/api/Orders?id=1
http://localhost/api/Orders?id=1,2,3,4
http://localhost/api/Orders?type=Pending,Confirmed
http://localhost/api/Orders?type=P%
Translations
http://localhost/api/Orders?$filter=(id eq 1)
http://localhost/api/Orders?$filter=((id eq 1) or (id eq 2) or (id eq 3))
http://localhost/api/Orders?$filter=((type eq 'Pending') or (type eq 'Confirmed'))
http://localhost/api/Orders?$filter=startswith(type e, 'P')
Support for int, double, date, string
Support for simple lists delimited by comma which translates to or clause
Optionally support wildcard queries with % syntax
Comments: The OData standards org is considering this for a future version of the OData standard (post v4). In the meantime you can implement support for this using a message handler to transform the URI.