diff options
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) |