diff --git a/README.md b/README.md index 1087423fac2830c2bd7abd74ee38ba3713abb2dc..e63268a3b068ae38d8279dcff8fb2c02ed971a6a 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 :