Skip to content

Polymorhic support for DRF but without required models

License

Notifications You must be signed in to change notification settings

maykinmedia/drf-polymorphic

Repository files navigation

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.

About

Polymorhic support for DRF but without required models

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages