Releases: FriendsOfCake/crud-json-api
Releases · FriendsOfCake/crud-json-api
1.1.0
1.0.3
What's Changed
- Add Missing Square Bracket in JSON Example by @amayer5125 in #168
- Update Docs to Only use denyList Verbiage by @amayer5125 in #167
- Clean Up Code Examples by @amayer5125 in #166
- Removed lies ;) by @geoidesic in #165
- Document validators by @amayer5125 in #169
- Maintenance by @ADmad in #175
- Bump jinja2 from 2.10.1 to 2.11.3 in /docs by @dependabot in #153
- Bump pygments from 2.3.0 to 2.7.4 in /docs by @dependabot in #154
- Bump urllib3 from 1.25.2 to 1.26.5 in /docs by @dependabot in #158
- Bump babel from 2.3.4 to 2.9.1 in /docs by @dependabot in #161
- Fix db config usage in tests. by @ADmad in #176
- Bump certifi from 2018.11.29 to 2022.12.7 in /docs by @dependabot in #177
New Contributors
- @amayer5125 made their first contribution in #168
- @ADmad made their first contribution in #175
- @dependabot made their first contribution in #153
Full Changelog: 1.0.2...1.0.3
1.0.2
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
1.0.0
1.0.0-RC3
1.0.0-RC2
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
(GeneratingcamelBacked
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
Make compatible with the latest beta of FriendsOfCake/crud
1.0.0-beta5
- Fix issue with single entities when a ResultSetDecorator is used
1.0.0-beta4
- Fixes potential issue with routes introduced in 1.0.0-beta3