About 8 results
Open links in new tab
  1. Cleanest way to implement multiple parameters filters in a REST API

    To filter on a field, simply add that field and its value to the query : GET /app/items { "items": [ { "param1": "value1", "param2": "value", "param N": "value N" } ] } I'm looking for the best practice to achieve this .

  2. How best to design a REST API with multiple filters?

    Filtering that resource is usually accomplished using query parameters to filter that single resource, e.g: /courses?college=123&instructor=321 By doing this, you avoid the issue with all possible permutations creating a proliferation of resources.

  3. rest - How to design RESTful search/filtering? - Stack Overflow

    Apr 28, 2017 · The idea is to introduce a new endpoint called /filters/ or /api/filters/. Using this endpoint filter can be considered as a resource and hence created via POST method. This way - of course - body can be used to carry all the parameters as well as complex search/filter structures can be created.

  4. REST API Design: Filtering, Sorting, and Pagination - Atatus

    Apr 25, 2023 · In a REST API, path parameters can be used to filter data by encoding the filtering conditions as part of the URL path. For example, consider an API endpoint that returns a list of products. You can use path parameters to filter the products based on specific criteria.

  5. Paging, sorting, filtering and retrieving specific fields in your ...

    Mar 26, 2018 · Use a unique query parameter for each of your fields, for example, to filter users based on their first name: If you would like to add full text search to your API, use a q query...

  6. Pass multiple fields for url query parameters for REST API

    Sep 7, 2018 · I want to pass multiple fields to filter the information that is returned on a page. The page uses a REST API to populate a table. I tried to setup multiple fields (lets call them SSN and Dept Name), but it only wants to filter on the first parameter in the query or statement.

  7. How to Implement Search and Filtering in a REST API ... - GeeksforGeeks

    Jan 7, 2025 · We can easy implement search and filter in REST API using node and express with the help to query string in the url. By handling query parameters and applying conditions to your database queries, you can create a flexible and powerful search and filtering system.

  8. Advanced Filtering For Rest Apis – peerdh.com

    Oct 7, 2024 · To implement advanced filtering, you can extend your API to accept multiple query parameters. Here’s how you can do it in a Node.js Express application. Setting Up the API

  9. REST Web API in Practice: Naming Endpoints, Filtering, Sorting

    Oct 4, 2021 · In this article, we will see some practical suggestions for adopting consistent: naming conventions in our URLs (API endpoints) and URL representation of the filtering, sorting, and pagination operations.

  10. Passing multiple parameters to Rest API with multiple conditions

    Nov 24, 2017 · I am looking at designing a Rest search API which can accept multiple parameters as filters. For example: https://test/api/GetCustomer?Filter=”FirstName=test||LastName=test||telephone=043232323”

Refresh