Search

allows you to search records in a given resource by a query string (by default it's the title property)

Endpoint: /api/resources/[RESOURCE-ID]/actions/search/[SEARCH-PHRASE]?[SEARCH-CONDITIONS]

Method: GET

Request params:

  • title - searching by title

  • filers.[field_name] - searching by field values

  • page - requested page number

  • perPage - number of records per page (max 500)

  • sortBy - id of the sorting column

  • direction - sorting direction, possible values asc,desc

Response:

  • records - list of records with resource metadata

    • record - record you're requesting

      • params - all record data

      • id - record id

      • title - record title

      • recordActions- list all actions and their parameters available on this record

      • bulkActions- list of all bulk actions and their parameters available on this record

Example:

Endpoint: https://adminjs-demo.herokuapp.com/admin/api/resources/categories/actions/search/Games

Last updated