document new functions in schemas.md

This commit is contained in:
Shaun Gosse 2021-02-08 15:03:40 -05:00
parent 3f947d2b87
commit b03be81144

View File

@ -375,6 +375,20 @@ operationIds.
In order to work around this, you can override `get_operation_id_base()` to In order to work around this, you can override `get_operation_id_base()` to
provide a different base for name part of the ID. provide a different base for name part of the ID.
#### `get_serializer()`
If the view has implemented `get_serializer()`, returns the result.
#### `get_request_serializer()`
By default returns `get_serializer()` but can be overridden to
differentiate between request and response objects.
#### `get_response_serializer()`
By default returns `get_serializer()` but can be overridden to
differentiate between request and response objects.
### `AutoSchema.__init__()` kwargs ### `AutoSchema.__init__()` kwargs
`AutoSchema` provides a number of `__init__()` kwargs that can be used for `AutoSchema` provides a number of `__init__()` kwargs that can be used for