Closed hayespdx closed 2 years ago
@hayespdx can you confirm which package you are using - the legacy cloudcreativity/laravel-json-api
package, or the newer laravel-json-api/laravel
package?
I'm using the newer one, so this was a mistake! Sorry. I've opened the issue in the right place now, so feel free to close/delete this.
Thanks for opening in the other repo!
Sparse fieldset requests don't seem to be working with included relationships...
/api/v1/images?include=places&fields[places]=name,slug
returns all attributes for places, instead of justname
andslug
, as JSON:API specifies here.