Sha256: 74c9b9037e5a92eaebd318790fff04d1fcff65a995459777a65630155b612c2b

Contents?: true

Size: 550 Bytes

Versions: 4

Compression:

Stored size: 550 Bytes

Contents

# Filtering

```shell
curl "https://example.com/api/v2/kittens?filter[id]=1"
curl "https://example.com/api/v2/kittens?filter[id]=2,3,4"
curl "https://example.com/api/v2/kittens?filter[breed]=Persian,British%20Shorthair,Bengal"
```

This project supports the [JSON API's `filter` keyword](http://jsonapi.org/format/#fetching-filtering) with only the root object, not any of its relationships yet.
You can filter any of the attributes that is inside of the data object.
Please see the example requests to the side on how you my filter a kitten object.

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
solidus_json_api-0.3.1 docs/source/includes/_filtering.md
solidus_json_api-0.3.0 docs/source/includes/_filtering.md
spree_api_v2-0.2.2 docs/source/includes/_filtering.md
solidus_api_v2-0.2.2 docs/source/includes/_filtering.md