You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@vinayakmoh Hi, Thanks for your issue. Would you please let me know what response you want to get? Exceptions? or other behavior?
Yes, I was expecting an OData Exception like this
{
"error": {
"code": "",
"message": "The query specified in the URI is not valid. Query option 'Select' is not allowed. To allow it, set the 'AllowedQueryOptions' property on EnableQueryAttribute or QueryValidationSettings.",
"details": [],
"innererror": {}
}
}
@xuzhg I am extending EnableQuery attribute to allow only selects and disallow everything else. But, the example (http://localhost:7071/api/v1/cn/customers?$select=name,Id&$filter=Id lt 4&$top=2&$count=true), still returns output. Am I, Missing something ?
[EnableQuery (AllowedQueryOptions = AllowedQueryOptions.Select)]
The text was updated successfully, but these errors were encountered: