Déplacer déclarations de route à pave pour API spec autogénérée #176

Merged
vlbeaudoin merged 17 commits from feature/pave into main 2023-11-20 17:05:41 -05:00
2 changed files with 1 additions and 5 deletions
Showing only changes of commit 9818466be5 - Show all commits

View file

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

View file

@ -254,7 +254,7 @@ func RunServer() {
if err := pave.EchoRegister[ if err := pave.EchoRegister[
apirequest.V1DocumentDELETE, 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) log.Fatal(err)
} }