Skip to content

Releases: FriendsOfCake/crud-json-api

1.1.0

22 Dec 06:25
a8a67c6
Compare
Choose a tag to compare

What's Changed

  • Replace "neomerx/json-api" with "laravel-json-api/neomerx-json-api". by @ADmad in #178

Full Changelog: 1.0.3...1.1.0

1.0.3

22 Dec 06:07
781862a
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.0.2...1.0.3

1.0.2

18 Nov 08:19
fae337c
Compare
Choose a tag to compare

This release fixes two issues.

  • Multi-word sparse fieldsets now work as expected
  • All fields that begin with _ will now be ignored when generating the response (Previously only _joinData and _matchingData were ignored, this caused certain things like translations to break)

1.0.1

30 Sep 07:30
42edd22
Compare
Choose a tag to compare

Fixes a small issue that would cause related links to fail in cases where the associations are identical, but use different aliases in their conditions.

1.0.0

30 Sep 07:11
Compare
Choose a tag to compare

CakePHP 4 compatible release

1.0.0-RC3

11 Sep 08:05
Compare
Choose a tag to compare
1.0.0-RC3 Pre-release
Pre-release

Fixes issue with DELETE requests to non-relationship endpoints.

1.0.0-RC2

18 Aug 13:36
Compare
Choose a tag to compare
1.0.0-RC2 Pre-release
Pre-release

This release adds support for /relationships/ endpoints as defined by the JSON:API specification (fetching relationships and updating relationships). It also adds support for related (i.e. /countries/1/currency) endpoints. A helper JsonApiRoutes class was also added to automatically create JSON:API compliant routes.

In order to make use of the new relationships endpoints, you need to add the CrudJsonApi.Relationships CRUD action. In order to get full support for related endpoints, you need to make use of the CrudJsonApi.View action, instead of the default Crud.View one.

Breaking changes

  • Whitelist and blacklist for includes have been renamed as allowList and denyList.
  • Default inflection has been changed to variable (Generating camelBacked attribute and relationship names)
  • jsonApiBelongsToLinks config option has been removed.
  • All relationships will now be listed in the response, however only those with data loaded will have the data member populated, otherwise only links (where valid routes exist) will be populated.
  • The self link for relationships will always be a /relationships/ route (Where such a route exists)
  • The related link for relationships will be in the form of /{model}/{id}/{relationshipName} where such routes exist, otherwise it will be a direct link to the related entity view (if such a route exists)

1.0.0-RC1

30 Jun 08:17
5bea6d7
Compare
Choose a tag to compare
1.0.0-RC1 Pre-release
Pre-release

Make compatible with the latest beta of FriendsOfCake/crud

1.0.0-beta5

23 Apr 08:01
Compare
Choose a tag to compare
1.0.0-beta5 Pre-release
Pre-release
  • Fix issue with single entities when a ResultSetDecorator is used

1.0.0-beta4

22 Apr 12:43
Compare
Choose a tag to compare
1.0.0-beta4 Pre-release
Pre-release
  • Fixes potential issue with routes introduced in 1.0.0-beta3