Drf-rehive-extras

Latest version: v2.2.1

Safety actively analyzes 621892 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

2.1.0

**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

Bugs

- Fixed some minor issues with status evaluation on endpoints.

2.0.1

Enhancements

Minor improvements to the timestamp field.

- Updated the `TimestampField` to use `IntegerField` as a base.

2.0.0

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:

python
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:

python
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:

python
response_status_codes = {"GET": status.HTTP_200_OK}

1.0.0

0.0.13

**Enhancements**

- Updated pagination handling

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.