Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djangorestframework_versioning-0.1.0.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

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