Search code examples
odataswagger-ui

How do I correctly send an OData $filter request?


I'm using Swagger-UI to GET a record from a table using Id and Name.

I'm receiving an error from the api service:

enter image description here

How can I correctly format an OData $filter request to successfully query this endpoint?


Solution

  • You should use this query to filter the data in OData

    https://localhost.com:3000/users?$filter=id eq 3 and name eq 'Bob'