From 9818466be5be81e6aaafd62ab36566c16a994004 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Mon, 20 Nov 2023 17:01:00 -0500 Subject: [PATCH] fix(api): remove unused fields and fix typo in V1DocumentDELETE --- apiresponse/document.go | 4 ---- cmd/server.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/apiresponse/document.go b/apiresponse/document.go index 5865584..beab0ae 100644 --- a/apiresponse/document.go +++ b/apiresponse/document.go @@ -11,8 +11,4 @@ type V1DocumentPOST struct { type V1DocumentDELETE struct { Response - Data struct { - Bucket string - Document string - } } diff --git a/cmd/server.go b/cmd/server.go index 776adfd..3943c24 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -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) }