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 0 additions and 7 deletions
Showing only changes of commit ab81c4bfa2 - Show all commits

View file

@ -134,11 +134,6 @@ func (h *V1Handler) V1DocumentGET(c echo.Context) error {
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
func (h *V1Handler) V1DocumentDELETE(c echo.Context) error {
var request apirequest.V1DocumentDELETE

View file

@ -250,8 +250,6 @@ func RunServer() {
groupV1.GET("/bucket/:bucket/:document", v1Handler.V1DocumentGET)
groupV1.PUT("/bucket/:bucket/:document", v1Handler.V1DocumentPUT)
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 {