Flask Rest Jsonapi Versions Save

Flask extension to build REST APIs around JSONAPI 1.0 specification.

0.31.2

3 years ago

0.14.3

6 years ago

Feature: Configuration: you can disallow to disable pagination. You can set ALLOW_DISABLE_PAGINATION to False in your configuration file.

0.14.1

6 years ago

New feature: WARNING: I have broken the compatibility with old JsonApiException class because i have changed initialization parameters. I made this to get a closer usage of JsonApiException compared to base python Exception class and to add all attributes of a jsonapi error.

Bug fix: #74 (thanks to @hellupline ) #69 (thanks to @jcampbell )

0.13.2

6 years ago
  • use Flask.jsonify instead of json for date and datetime serialization
  • bug fix when include parameter is not provided

0.13.0

6 years ago

New features:

  • SQLAlchemy data layer: include querystring parameter values are now eager-loaded with the main query by default. This feature greatly increases performance because it merge all queries made to serialize relationships of each item into one. You can disable this feature, just set the eagerload_includes data layer parameter to False.

  • SQLAlchemy data layer: the after_get_collection default method implementation now returns a collection. So you can create your own collection before serialization with the collection of data retrieved before.

  • Configuration: you can now control the default pagination size with the configuration keyword PAGE_SIZE. Default is 30.

  • Configuration: you can now control the maximum page size with the configuration keyword MAX_PAGE_SIZE.

  • Configuration: you can now control the maximum include depth with the configuration keyword MAX_INCLUDE_DEPTH. (Exemple: if you set the value to 2 you can do ?include=computer.owner but not ?include=computer.owner.computers)

Bug fix:

  • #61 (thanks to @kumy )
  • #59 (thanks to @Natureshadow )
  • #58 (thanks to @rgant )
  • #50 #51 #52 (thanks to @sodre )
  • #53 (thanks to @michaelgodshall)

0.12.6

6 years ago
  • Allow usage of multiple mime-type in the Accept header: 144d304dc40ac55d4f7dc956356d8f5af3db1ae5 (thanks to Natureshadow)
  • Make incomming data available to update them in before_post and before_patch and also for relationship resource manager: f2cb7e94e0452a2f4b59ebea3270b5db6f9ab5ce
  • Bug fix of sorting on hybrid_property: d22d5959aeada3eea8627a83157f4f96dea9936b (thanks to shubham-padia)

0.12.2

7 years ago

Fix multi sort with sqlalchemy 90aadfdce054f0b5b78ea44c24fcd5210454def4 Fix Content-Type header check 60b6691ed412976d0d60367dc50a73f226a75275

0.12.1

7 years ago

better error handling when object is not found

0.12.0

7 years ago

Add permission system and OAuth support via Flask-OAuthlib

0.11.4

7 years ago

Bug fix on custom data layer usage Bug fix on filtering (thanks to jamesalbert)