Fix implémentations de UploadDocument et models.NotFoundResponse()
This commit is contained in:
parent
37eb18cfa5
commit
48a8c8a37a
4 changed files with 17 additions and 16 deletions
api
|
@ -138,8 +138,8 @@ func (a *API) Call(method, route string) ([]byte, error) {
|
|||
return nil, errors.New(fmt.Sprintf("method must be 'GET' or 'DELETE', got '%s'", method))
|
||||
}
|
||||
|
||||
func (a *API) UploadDocument(bucket string, file_header *multipart.FileHeader) (models.UploadDocumentResponse, error) {
|
||||
var response models.UploadDocumentResponse
|
||||
func (a *API) UploadDocument(bucket string, file_header *multipart.FileHeader) (models.V1DocumentCreateResponse, error) {
|
||||
var response models.V1DocumentCreateResponse
|
||||
endpoint := fmt.Sprintf("%s://%s:%d",
|
||||
a.Protocol,
|
||||
a.Host,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue