Skip to content

Releases: vladmunteanu/starlette-jsonapi

v2.2.1

25 Jul 13:36
Compare
Choose a tag to compare

Removed 3.6 support, added 3.10

OpenAPI

13 Mar 15:02
Compare
Choose a tag to compare

Added experimental support for generating OpenAPI 3.x specifications

2.0

05 Mar 11:27
b5762e9
Compare
Choose a tag to compare
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

28 Jul 09:13
Compare
Choose a tag to compare
  • absolute links, via app.url_prefix
  • top level meta objects
  • documented client generated IDs support

Related Resources

23 Jul 08:11
Compare
Choose a tag to compare
  • added support for Related Resources through handler get_related and serialization method serialize_related
  • added request_context to BaseResource
  • require that related_resource is specified in order to display related links, when configuring a JSONAPIRelationship

Decoupling serialization and response logic

23 Jul 08:09
Compare
Choose a tag to compare
v1.0.0

Changed version to 1.0.0

Features

07 Jul 08:26
Compare
Choose a tag to compare
  • Relationship Resource
  • Sparse Fields

Initial release

04 Jul 17:41
Compare
Choose a tag to compare
v0.0.1

Removed python3.8 for now