fix(api): remove unused fields and fix typo in V1DocumentDELETE
This commit is contained in:
parent
86f1284e12
commit
9818466be5
2 changed files with 1 additions and 5 deletions
|
@ -11,8 +11,4 @@ type V1DocumentPOST struct {
|
|||
|
||||
type V1DocumentDELETE struct {
|
||||
Response
|
||||
Data struct {
|
||||
Bucket string
|
||||
Document string
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue