Skip to content

Use djangorestframework

Bengfort requested to merge update-ci into main

djangorestframework is the tool to build APIs with django. I am not sure though whether we should use it for this project.

Pros

  • Minimal code changes needed
  • Provides a browsable API
  • Provides OpenAPI schema
  • Ready-made authorization options in case we ever need to switch to something more complex

Cons

  • Huge dependency
  • The automatically generated schema contains some errors (e.g. it claims that PUT responds with 200 when actually it responds with 204). AFAIU, these errors can only be fixed by replacing the complete schema with a manually written one. We can do that without djangorestframework.
Edited by Bengfort

Merge request reports