Fix implémentations de UploadDocument et models.NotFoundResponse()

This commit is contained in:
Victor Lacasse-Beaudoin 2023-08-23 16:01:57 -04:00
parent 37eb18cfa5
commit 48a8c8a37a
4 changed files with 17 additions and 16 deletions

View file

@ -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,