Déplacer déclarations de route à pave pour API spec autogénérée #176
2 changed files with 0 additions and 7 deletions
|
@ -134,11 +134,6 @@ func (h *V1Handler) V1DocumentGET(c echo.Context) error {
|
||||||
return c.Stream(http.StatusOK, document_info.ContentType, document_object)
|
return c.Stream(http.StatusOK, document_info.ContentType, document_object)
|
||||||
}
|
}
|
||||||
|
|
||||||
// V1DocumentPUT permet de mettre à jour certains champs d'un object, comme le Content-Type ou le Filename
|
|
||||||
func (h *V1Handler) V1DocumentPUT(c echo.Context) error {
|
|
||||||
return c.JSON(apiresponse.NotImplementedResponse())
|
|
||||||
}
|
|
||||||
|
|
||||||
// V1DocumentDELETE permet de supprimer un object
|
// V1DocumentDELETE permet de supprimer un object
|
||||||
func (h *V1Handler) V1DocumentDELETE(c echo.Context) error {
|
func (h *V1Handler) V1DocumentDELETE(c echo.Context) error {
|
||||||
var request apirequest.V1DocumentDELETE
|
var request apirequest.V1DocumentDELETE
|
||||||
|
|
|
@ -250,8 +250,6 @@ func RunServer() {
|
||||||
|
|
||||||
groupV1.GET("/bucket/:bucket/:document", v1Handler.V1DocumentGET)
|
groupV1.GET("/bucket/:bucket/:document", v1Handler.V1DocumentGET)
|
||||||
|
|
||||||
groupV1.PUT("/bucket/:bucket/:document", v1Handler.V1DocumentPUT)
|
|
||||||
|
|
||||||
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 {
|
||||||
|
|
Loading…
Reference in a new issue