Ajouter struct tags à routes documents #178

Merged
vlbeaudoin merged 1 commit from fix/missing-request-structtags into main 2023-11-20 17:21:49 -05:00

View file

@ -16,10 +16,10 @@ var _ request.Requester[apiresponse.V1DocumentPOST] = V1DocumentPOST{}
type V1DocumentPOST struct { type V1DocumentPOST struct {
Data struct { Data struct {
Document *multipart.FileHeader Document *multipart.FileHeader `document`
} }
Params struct { Params struct {
Bucket string Bucket string `json:"bucket"`
} }
} }
@ -63,8 +63,8 @@ var _ request.Requester[apiresponse.V1DocumentDELETE] = V1DocumentDELETE{}
type V1DocumentDELETE struct { type V1DocumentDELETE struct {
Params struct { Params struct {
Bucket string Bucket string `json:"bucket"`
Document string Document string `json:"document"`
} }
} }