Skip to main content

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

Test package Coverage Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

drf-complete-metadata-1.0.0.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

drf_complete_metadata-1.0.0-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page