Skip to main content

Polymorphic serializers without models

Project description

DRF-polymorphic

Version:

1.0.0

Source:

https://github.com/maykinmedia/drf-polymorphic

Keywords:

django, rest, polymorphic

Run CI Coverage status Code linting black Documentation Status

python-versions django-versions pypi-version

Polymorphic support for DRF without Django models

Overview

Polymorphism happens when a resource takes a certain shape depending on the type of the resource. Usually they have a common base type. The exact type/shape is not statically known, but depends on the run-time values.

Unlike django-rest-polymorphic this implementation doesn’t require the usage of django-polymorphic model classes and can be used even without django models.

The implementations also includes the extension for DRF spectacular schema generation.

See the documentation for getting started and usage examples.

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-polymorphic-1.0.0.tar.gz (7.8 kB view hashes)

Uploaded Source

Built Distribution

drf_polymorphic-1.0.0-py3-none-any.whl (6.6 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