mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
More docs on configuring a custom metadata class.
This commit is contained in:
parent
a9f1d99cb5
commit
0ea64f6b33
|
@ -98,6 +98,12 @@ The following class could be used to limit the information that is returned to `
|
|||
'description': view.get_view_description()
|
||||
}
|
||||
|
||||
Then configure your settings to use this custom class:
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
'DEFAULT_METADATA_CLASS': 'myproject.apps.core.MinimalMetadata'
|
||||
}
|
||||
|
||||
[cite]: http://tools.ietf.org/html/rfc7231#section-4.3.7
|
||||
[no-options]: https://www.mnot.net/blog/2012/10/29/NO_OPTIONS
|
||||
[json-schema]: http://json-schema.org/
|
||||
|
|
Loading…
Reference in New Issue
Block a user