Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Created Issue: WebAPI OData $filter casing [323]

$
0
0
In RC casing of the filter attribute didn't matter. It seems that in RTM the casing of your filter property does matter.

Take this example:

http://localhost:/api/Bar?$filter=foo eq 'test'

would throw this error:

{
"Message": "The query specified in the URI is not valid.",
"ExceptionMessage": "Type '[REDACTED]' does not have a property 'foo'.",
"ExceptionType": "Microsoft.Data.OData.ODataException",
"StackTrace": " INTENTIONALLY LEFT BLANK
}

This, however, does work.

http://localhost:/api/Bar?$filter=Foo eq 'test'

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>