For filters, what is the recommended way to filter on attributes in related resources.
Would this filtering strategy be acceptable / recommended:
Filter BY ID: filter[author]=9
Filter By Author Last Name: filter[author][last-name]=Smith
For the below example data set (taken from jsonapi.org)
"data": [{
"type": "articles",
"id": "1",
"attributes": {
"title": "JSON API paints my bikeshed!"
},
"relationships": {
"author": {
"links": {
"self": "http://example.com/articles/1/relationships/author",
"related": "http://example.com/articles/1/author"
},
"data": { "type": "people", "id": "9" }
}, ...