From 9e6d421451882f0162ebbac217af5d06328a0ad8 Mon Sep 17 00:00:00 2001 From: neodarz Date: Mon, 27 Feb 2017 11:39:36 +0100 Subject: Remove some '\n' --- README.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 73e9f12..953f314 100644 --- a/README.md +++ b/README.md @@ -24,15 +24,11 @@ Ready to run in production? Please To upload a 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` +`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` To delete a file: @@ -42,8 +38,7 @@ 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) ## Development: -If you have an error like : `[debug] ** (Ecto.NoResultsError) expected at least -one result but got none in query:` when you dev, check the doc : +If you have an error like : `[debug] ** (Ecto.NoResultsError) expected at least one result but got none in query:` when you dev, check the doc : `http://www.phoenixframework.org/v0.14.0/docs/custom-errors` tl;dr: change this `debug_errors: false` and `catch_errors: true` in -- cgit v1.2.1