Versioning tools for use with Django Rest Framework
Project description
Django Rest Framework Versioning
Work In Progress!
Todo:
- Make VersionedSerializer work as inline serializer
- Needs to get context.request from parent probably
- Hard(er) link between VersioningSerializer and its transforms
- Make VersionDoesNotExist a subclass of rest framework APIerror so views can handle it.
- The holy grail: get drf's openapi schema generator to listen to all this stuff.
- Startup checks:
- VersioningSerializers have transform_base declared
- Field becomes required / nullable or reverse
- Add value to field choices (shouldn't appear in old schema)
- Add value to field schema and map to old value. E. G. Active / Failed -> Active /Failed / Retrying but for older versions Retrying should be displayed as Failed
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
Close
Hashes for djangorestframework_versioning-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7608783b99bdbcc06c64f9ae7b2f8aeca666ea61c218584571c9b77ce268d0fe |
|
MD5 | 598239b556474ad92201d00d712633a1 |
|
BLAKE2b-256 | eaef6d4bf20b9305aa152c360ec9604ff2d18b57ebefcbffd354eebe75f5aa9a |
Close
Hashes for djangorestframework_versioning-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32cc0eaad2d09ad07481ff170017f68377c6939ce231e5f0d4b29ebb12410530 |
|
MD5 | 97de98dbb5142e6a03ab2b9bb122fa9e |
|
BLAKE2b-256 | 7413a2f7bf728d4ae9c03e72e230f99126918d0ca95f310b1832e58e96ff01fd |