Add overrides on endpoints returning different serializers
Note that all of those changes only affect the API docs, not the API client or the API endpoints themselves.
-
CreateDataImportFromFiles
returns the created process instead of the request payload -
CreateExternalRepository
returns the created process instead of the request payload -
CreateImportTranskribus
returns the created process instead of the request payload (an existing override oncreate
was ignored asCREATE
is not an HTTP method) -
AddSelection
now returns an element
⚠ It should return a list of elements, but addingmany=True
here causes Spectacular to thinkAddSelection
has pagination and this cannot be easily fixed (upstream issue) -
CreateEntity
now returns the created entity instead of the request payload -
Register
now returns the created user instead of the request payload -
Login
now returns the user instead of the credentials
Edited by Erwan Rouchet