From c28e20c3176a4edc73037b65d84e11a4e62138c9 Mon Sep 17 00:00:00 2001 From: Vandewaeter Fabio <fabio.vandewaeter.etu@univ-lille.fr> Date: Mon, 17 Mar 2025 11:23:52 +0100 Subject: [PATCH] readme --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 1087423..e63268a 100644 --- a/README.md +++ b/README.md @@ -135,15 +135,13 @@ curl -X PUT http://localhost:8080/ftps/mon-ftp -H "Content-Type: application/jso - lister les serveurs : ```shell curl -X GET -H "Authorization: Bearer valid-token-1" http://localhost:8080/ftps - -[{"alias":"mon-ftp","host":"nouvelle-adresse","port":2221}] ``` **Note comprise entre 14 et 15 si—en plus—le proxy FlopBox, permet de créer, supprimer, renommer une ressource directement sur l'un des serveurs FTP gérés (fichier ou répertoire):** - créer dossier : ```shell -curl -X POST -H "X-Resource-Type: file" -H "Authorization: Bearer valid-token-1" -H "X-FTP-User: user" -H "X-FTP-Pass: password" http://localhost:8080/ftps/mon-ftp/dossier +curl -X POST -H "X-Resource-Type: folder" -H "Authorization: Bearer valid-token-1" -H "X-FTP-User: user" -H "X-FTP-Pass: password" http://localhost:8080/ftps/mon-ftp/dossier ``` - créer fichier : -- GitLab