Polymorphic serializers without models
Project description
DRF-polymorphic
- Version:
0.1.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-0.1.0.tar.gz
.
File metadata
- Download URL: drf-polymorphic-0.1.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b57e0b5494bac99bc6241b9f81d6ee1df9b3b0e5535c970df18240917a3f99e0 |
|
MD5 | d598147e91621cee222f68a7593f775a |
|
BLAKE2b-256 | ad8d81bceeee9c7f6fb6c5b1abdf7095e4824ec9b24598fe8460cbb8b09ac9e1 |
File details
Details for the file drf_polymorphic-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: drf_polymorphic-0.1.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 | 6c52175d70f7eaafcd4f47cf48a25b5ad9da87a20e0f9e96d7252498a5141a6f |
|
MD5 | a03ab09461b90c59ee6a22f997879579 |
|
BLAKE2b-256 | a8b3bd4450f3284cf8498939e0340c9384ddde5328794b53ba6959f82a86bb9c |