Polymorphic serializers without models
Project description
DRF-polymorphic
- Version:
1.0.0
- Source:
- Keywords:
django, rest, polymorphic
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
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
File details
Details for the file drf-polymorphic-1.0.0.tar.gz
.
File metadata
- Download URL: drf-polymorphic-1.0.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 331fcc3b430fc6bf250e7845adf1fb566028466323699a0630ef05818ccdb40b |
|
MD5 | f42f238fa9742a54474c5118cf1e8e1f |
|
BLAKE2b-256 | fe2140bad5f7404254b41425e6e80dc85ff6849736c3dfcf656944d0fbc3f070 |
File details
Details for the file drf_polymorphic-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: drf_polymorphic-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54f464271155dfb593c81ef9251816be57de5ca5409d857ad80eb330f10364f1 |
|
MD5 | ce2b63ae3b0e0e07a58b450129497265 |
|
BLAKE2b-256 | fa24d19452fa6884a37d576a432d9ce04f7d336e5450321169fb6359c73e34fb |