Crud Json Api Versions Save

Build advanced JSON API Servers with almost no code.

1.1.0

1 year ago

What's Changed

Full Changelog: https://github.com/FriendsOfCake/crud-json-api/compare/1.0.3...1.1.0

1.0.3

1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/FriendsOfCake/crud-json-api/compare/1.0.2...1.0.3

1.0.2

3 years ago

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

3 years ago

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

3 years ago

CakePHP 4 compatible release

1.0.0-RC3

3 years ago

Fixes issue with DELETE requests to non-relationship endpoints.

1.0.0-RC2

3 years ago

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-beta6

3 years ago

Make compatible with the latest beta of FriendsOfCake/crud

1.0.0-beta5

4 years ago
  • Fix issue with single entities when a ResultSetDecorator is used

1.0.0-beta4

4 years ago
  • Fixes potential issue with routes introduced in 1.0.0-beta3