fix(api): remove unused fields and fix typo in V1DocumentDELETE

This commit is contained in:
Victor Lacasse-Beaudoin 2023-11-20 17:01:00 -05:00
parent 86f1284e12
commit 9818466be5
2 changed files with 1 additions and 5 deletions

View file

@ -11,8 +11,4 @@ type V1DocumentPOST struct {
type V1DocumentDELETE struct {
Response
Data struct {
Bucket string
Document string
}
}

View file

@ -254,7 +254,7 @@ func RunServer() {
if err := pave.EchoRegister[
apirequest.V1DocumentDELETE,
apiresponse.V1DocumentDELETE](groupV1, &p, "/v1", http.MethodDelete, "/bucket/:bucket/:document", "Delete document in specified bucket", "V1DocumentDELEte", v1Handler.V1DocumentDELETE); err != nil {
apiresponse.V1DocumentDELETE](groupV1, &p, "/v1", http.MethodDelete, "/bucket/:bucket/:document", "Delete document in specified bucket", "V1DocumentDELETE", v1Handler.V1DocumentDELETE); err != nil {
log.Fatal(err)
}