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.
-
CreateDataImportFromFilesreturns the created process instead of the request payload -
CreateExternalRepositoryreturns the created process instead of the request payload -
CreateImportTranskribusreturns the created process instead of the request payload (an existing override oncreatewas ignored asCREATEis not an HTTP method) -
AddSelectionnow returns an element
⚠ It should return a list of elements, but addingmany=Truehere causes Spectacular to thinkAddSelectionhas pagination and this cannot be easily fixed (upstream issue) -
CreateEntitynow returns the created entity instead of the request payload -
Registernow returns the created user instead of the request payload -
Loginnow returns the user instead of the credentials
Edited by Erwan Rouchet