diff options
author | neodarz <neodarz@neodarz.net> | 2017-02-27 11:37:48 +0100 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2017-02-27 11:37:48 +0100 |
commit | 6008015c8d66ae78a32898adbecbb533c7f3db40 (patch) | |
tree | 063967ac011bdc19465b2a9711b678de58956545 | |
parent | 3f92d6cce34f00cff5c273b14a5c5191d631a131 (diff) | |
download | the_transcriber_backend-6008015c8d66ae78a32898adbecbb533c7f3db40.tar.xz the_transcriber_backend-6008015c8d66ae78a32898adbecbb533c7f3db40.zip |
Add info for delete file
Diffstat (limited to '')
-rw-r--r-- | README.md | 18 |
1 files changed, 14 insertions, 4 deletions
@@ -9,7 +9,8 @@ To start your Phoenix app: Now you can visit [`localhost:4000`](http://localhost:4000) from your browser. -Ready to run in production? Please [check our deployment guides](http://www.phoenixframework.org/docs/deployment). +Ready to run in production? Please +[check our deployment guides](http://www.phoenixframework.org/docs/deployment). ## Learn more @@ -23,10 +24,19 @@ Ready to run in production? Please [check our deployment guides](http://www.phoe To upload a file: -`curl --form "audio_file[audio_path]=@RapportAssemblee.mp4" --form "audio_file[audio_name]=RappooortAssemblee.mp4" --form "audio_file[audio_duration]=00:00" http://127.0.0.1:4000/api/audio_file` +`curl --form "audio_file[audio_path]=@RapportAssemblee.mp4" --form +"audio_file[audio_name]=Rapport vidéo de l'assemblée" --form +"audio_file[audio_duration]=03:20" http://127.0.0.1:4000/api/audio_file` To update a file: -`curl --form "audio_file[audio_path]=@RapportAssemblee.mp4" --form "audio_file[audio_name]=RapportAssemblee.mp4" --form "audio_file[audio_duration]=00:00" -X PATCH http://127.0.0.1:4000/audio_file/42` +`curl --form "audio_file[audio_path]=@RapportAssemblee.mp4" --form +"audio_file[audio_name]=RapportAssemblee.mp4" --form +"audio_file[audio_duration]=00:00" -X PATCH http://127.0.0.1:4000/audio_file/42` -You can also view the content of the database with this web page : [`localhost:4000/audio_file`](http://127.0.0.1:4000/audio_file) +To delete a file: + +`curl -X DELETE http://127.0.0.1:4000/api/audio_file/42` + +You can also view the content of the database with this web page : +[`localhost:4000/audio_file`](http://127.0.0.1:4000/audio_file) |