Skip to content

Releases: rehive/drf-rehive-extras

2.1.0

27 Jul 16:31
1777965
Compare
Choose a tag to compare

Enhancements

  • Added additional documentation handling via the yaml file documentation dirs.
  • Added special auto schema for enveloping responses and attaching additional documentation.
  • Added special auto schema extensions.

2.0.4

30 Jun 12:39
Compare
Choose a tag to compare

Bugs

  • Fixed some minor issues with status evaluation on endpoints.

2.0.1

30 Jun 10:04
Compare
Choose a tag to compare

Enhancements

Minor improvements to the timestamp field.

  • Updated the TimestampField to use IntegerField as a base.

2.0.0

29 Jun 21:30
Compare
Choose a tag to compare

Enhancements

Major changes to how view response serialization and status codes are retrieved.

Response serialization

Instead of specifying a return_serializer within the create/update methods on the view, the response serializer can be specified using a new format in the serializer_classes attribute on views. The new format allows a separate request and response to be defined:

serializer_classes = {"GET": (RequestObjectSerializer, ResponseObjectSerializer,)}

The old format where it defaults to to the same serializer for both request and response serialization is still supported:

serializer_classes = {"GET": RequestAndResponseObjectSerializer}

Response status codes

Response status codes can now be modified via the response_status_codes attribute on views instead of the old return_status_code. Status codes can be specified for each HTTP method:

response_status_codes = {"GET": status.HTTP_200_OK}

1.0.0

17 Feb 10:32
6578ab3
Compare
Choose a tag to compare
Merge pull request #3 from rehive/python_version_update

Python version update

0.0.13

28 Feb 14:55
Compare
Choose a tag to compare

Enhancements

  • Updated pagination handling

0.0.10

12 Aug 09:56
Compare
Choose a tag to compare

Bugs

  • Fixed a bug in timestamp input where millisecond values are reset to 0 when inserted in the DB.

0.0.9

06 Aug 15:21
Compare
Choose a tag to compare

Fixed a bug in timestamp serialization.

0.0.8

24 Jul 15:58
Compare
Choose a tag to compare

Added new enum field for DRF serializers.

0.0.7

27 Mar 10:37
Compare
Choose a tag to compare
Adding allowed uppercase letters