Skip to content
Snippets Groups Projects
Commit c28e20c3 authored by Fabio Vandewaeter's avatar Fabio Vandewaeter
Browse files

readme

parent 0a7f67c4
Branches
Tags
No related merge requests found
......@@ -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 :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment