This package provides custom metadata class for Django Rest Framework to enrich data returned by OPTIONS requests in easy way.
Project description
DRF complete metadata
About
This package provides custom metadata class for Django Rest Framework to enrich data returned by OPTIONS requests in easy way.
Install
pip install drf-complete-metadata
Usage
Just set the DEFAULT_METADATA_CLASS option in the REST_FRAMEWORK configuration dict in Django settings.
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [
'rest_framework.authentication.TokenAuthentication',
],
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.IsAuthenticated'
],
'DEFAULT_METADATA_CLASS': 'complete_metadata.ApiMetadata',
}
License
The DRF complete autocomplete package is licensed under the FreeBSD License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for drf-complete-metadata-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c416d38f1ab992b86238426a954c5295daeee3e12078ed3c0aaa629429f2a3f4 |
|
MD5 | f7463d107ae414243e7d8c0c6fd391a0 |
|
BLAKE2b-256 | 872a8dc4b41e7963357d2f45cf6421c27da28f43defe0a81879f747091227183 |
Close
Hashes for drf_complete_metadata-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 520d673d5e648d2fe2d6bf12ceef9f97aeca8b5822ccb18a71ba17fd96b0173b |
|
MD5 | 1fb3bf8392c8176f08e11ea422e40cc2 |
|
BLAKE2b-256 | df33da5aec959e8af55d8c84b92a5a62ddd8d73d46493c4981e8c38d6f258e3d |