From c4b85e77adebcc9c996442cbedac218ee5953df6 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Mon, 24 Apr 2023 18:40:17 -0400 Subject: [PATCH] Ajouter docstrings pour routes Document --- cmd/server.go | 4 ++++ 1 file changed, 4 insertions(+) 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",