Fix swagger doc
Closed this issue · 1 comments
jmorel commented
The current auto-generated swagger documentation (/doc
) is broken, probably as a result of our last DRF update.
The library it relied on is also deprecated since mid-2019, so instead of just fixing it we'll need to switch to something new.
A potential replacement is https://github.com/axnsan12/drf-yasg
We need to make sure that the fix swagger doc specifies correctly how file uploads are handled. That was the purpose of the SchemaGenerator
class in backend/views.py
.