Releases: vladmunteanu/starlette-jsonapi
Releases · vladmunteanu/starlette-jsonapi
v2.2.1
OpenAPI
Added experimental support for generating OpenAPI 3.x specifications
2.0
- BaseResource.get_all renamed to BaseResource.get_many
- Require starlette >= 0.14.2 to install, for the functools.partial support
- Remove handle_{get, patch, delete, get_many, post} in favor of partials
- Marked id argument of get, patch, delete as required, because the framework already expects and passes it.
- Catch and handle errors from before_request and after_request hooks
- Added request_context to BaseResource.handle_error and BaseRelationshipResource.handle_error
- Added _BaseResourceHandler and moved / refactored common logic
- Made JSONAPIException serialize its detail even if a list of errors is given
- Relationships will serialize by default, removing the need to specify include_resource_linkage=True when creating a JSONAPIRelationship
- Sparse Fields handling has been fixed, refactored (no longer async) and should now be easier to override in subclasses
- BaseResource.register_routes now optionally accepts base_path
- BaseResource.prepare_relations renamed to BaseResource.include_relations
Features
- absolute links, via
app.url_prefix
- top level
meta
objects - documented client generated IDs support
Related Resources
- added support for Related Resources through handler
get_related
and serialization methodserialize_related
- added
request_context
toBaseResource
- require that
related_resource
is specified in order to display related links, when configuring aJSONAPIRelationship
Decoupling serialization and response logic
v1.0.0 Changed version to 1.0.0
Features
- Relationship Resource
- Sparse Fields
Initial release
v0.0.1 Removed python3.8 for now