Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Basic structure at the moment looks like this...
(Tho there's a whole host of smaller line items)
Need to flesh this out with examples for everything to give some better context throughout, and also figure out what other PRs ought to make the 3.12 cutoff.
Django REST framework 3.12
Schema generation improvements
Grouping operations with tags.
https://www.django-rest-framework.org/api-guide/schemas/#grouping-operations-with-tags
Customizing the operation ID.
https://www.django-rest-framework.org/api-guide/schemas/#operationid
Support OpenAPI components.
https://www.django-rest-framework.org/api-guide/schemas/#components
More Public API
get_path_parameters
get_pagination_parameters
get_filter_parameters
get_request_body
get_responses
get_serializer
get_paginator
map_serializer
map_field
map_choice_field
map_field_validators
allows_filters
.See the schema docs.
Support for JSONField.
Django 3.1 deprecated the existing
django.contrib.postgres.fields.JSONField
in favour of a new database-agnositic
JSONField
.REST framework 3.12 now supports this new model field, and
ModelSerializer
classes will correctly map the model field.
SearchFilter improvements
There are a couple of significant improvements to the
SearchFilter
class.Support for nested search within
JSONField
andHStoreField
TODO Example to give better context.
Support for searching against fields created using
annotate
TODO Example to give better context.