diff --git a/cmd/server.go b/cmd/server.go index ac210fd..c65041c 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -304,6 +304,7 @@ func handleV1BucketRead(c echo.Context) error { return c.JSON(http.StatusOK, keys) } +// handleV1DocumentCreate permet d'ajouter un object dans un bucket, par multipart/form-data func handleV1DocumentCreate(c echo.Context) error { documents_endpoint := viper.GetString("server.documents.endpoint") documents_access_key_id := viper.GetString("server.documents.access_key_id") @@ -357,18 +358,21 @@ func handleV1DocumentCreate(c echo.Context) error { }) } +// handleV1DocumentRead permet de lire le contenu d'un fichier et protentiellement de le télécharger func handleV1DocumentRead(c echo.Context) error { return c.JSON(http.StatusNotImplemented, map[string]string{ "message": "Not Implemented", }) } +// handleV1DocumentUpdate permet de mettre à jour certains champs d'un object, comme le Content-Type ou le Filename func handleV1DocumentUpdate(c echo.Context) error { return c.JSON(http.StatusNotImplemented, map[string]string{ "message": "Not Implemented", }) } +// handleV1DocumentDelete permet de supprimer un object func handleV1DocumentDelete(c echo.Context) error { return c.JSON(http.StatusNotImplemented, map[string]string{ "message": "Not Implemented",