Skip to content

JSON API v3.2.0

Compare
Choose a tag to compare
@xiaohutai xiaohutai released this 23 Apr 08:02
· 12 commits to master since this release

NOTE FOR v3.2.0 !

This version has a backward compatiblity issue if your code expects a 400 Bad Request error in empty listings. This is not according the JSONAPI specification:

200 OK
A server MUST respond to a successful request to fetch an individual resource or resource collection with a 200 OK response.

A server MUST respond to a successful request to fetch a resource collection with an array of resource objects or an empty array ([]) as the response document’s primary data.
Source http://jsonapi.org/format/#fetching-resources-responses

In v3.2.0, this extension now returns a 200 OK and an empty array instead.