Skip to content

Commit 7080f7b

Browse files
committed
Merge pull request #277 from esasse/esasse-filter-doc
Add a sample request using a filter
2 parents 5b1336b + 29af5e8 commit 7080f7b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ class ContactResource < JSONAPI::Resource
280280
end
281281
```
282282

283+
Then a request could pass in a filter for example `http://example.com/contacts?filter[name_last]=Smith` and the system will find all people where the last name exactly matches Smith.
284+
283285
##### Default Filters
284286

285287
A default filter may be defined for a resource using the `default` option on the `filter` method. This default is used

0 commit comments

Comments
 (0)