This is the documentation for 2022-02-01.

Filtering

You can search within a collection using ?filter[field].

URL Syntax

  • /resources?filter[field]=value

Not all attributes are searchable. Some attributes are computed attributes and are not physically so that they are not searchable. In this case, an exception is thrown.

Example

Request

GET /production-methods?filter[handle]=dtg HTTP/1.1

Response

{
    "data": [
        {
            "id": 1,
            "collection_name": "dtg",
            "handle": "dtg",
            "name": "Digital print",
            "description": "Digital print",
            "is_digitizable": false,
            "created_at": "2022-04-28T14:30:57+00:00",
            "updated_at": "2022-04-28T14:30:57+00:00"
        }
    ],
    "links": {
        "first": "https://api.smake.io/v2/apps/1/production-methods?filter%5Bhandle%5D=dtg&page=1",
        "last": null,
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "path": "https://api.smake.io/v2/apps/1/production-methods",
        "per_page": 25,
        "to": 1
    }
}