Ajouter docstrings pour routes Document

This commit is contained in:
Victor Lacasse-Beaudoin 2023-04-24 18:40:17 -04:00
parent 2732d36066
commit c4b85e77ad

View file

@ -304,6 +304,7 @@ func handleV1BucketRead(c echo.Context) error {
return c.JSON(http.StatusOK, keys) 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 { func handleV1DocumentCreate(c echo.Context) error {
documents_endpoint := viper.GetString("server.documents.endpoint") documents_endpoint := viper.GetString("server.documents.endpoint")
documents_access_key_id := viper.GetString("server.documents.access_key_id") 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 { func handleV1DocumentRead(c echo.Context) error {
return c.JSON(http.StatusNotImplemented, map[string]string{ return c.JSON(http.StatusNotImplemented, map[string]string{
"message": "Not Implemented", "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 { func handleV1DocumentUpdate(c echo.Context) error {
return c.JSON(http.StatusNotImplemented, map[string]string{ return c.JSON(http.StatusNotImplemented, map[string]string{
"message": "Not Implemented", "message": "Not Implemented",
}) })
} }
// handleV1DocumentDelete permet de supprimer un object
func handleV1DocumentDelete(c echo.Context) error { func handleV1DocumentDelete(c echo.Context) error {
return c.JSON(http.StatusNotImplemented, map[string]string{ return c.JSON(http.StatusNotImplemented, map[string]string{
"message": "Not Implemented", "message": "Not Implemented",