From 6008015c8d66ae78a32898adbecbb533c7f3db40 Mon Sep 17 00:00:00 2001 From: neodarz Date: Mon, 27 Feb 2017 11:37:48 +0100 Subject: Add info for delete file --- README.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 67dbabe..90f4489 100644 --- a/README.md +++ b/README.md @@ -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) -- cgit v1.2.1