Déplacer déclarations de route à pave pour API spec autogénérée #176
2 changed files with 1 additions and 5 deletions
|
@ -11,8 +11,4 @@ type V1DocumentPOST struct {
|
||||||
|
|
||||||
type V1DocumentDELETE struct {
|
type V1DocumentDELETE struct {
|
||||||
Response
|
Response
|
||||||
Data struct {
|
|
||||||
Bucket string
|
|
||||||
Document string
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue