From e455009b1872815c4fad91c389af9f7a27a6ba28 Mon Sep 17 00:00:00 2001 From: neodarz Date: Tue, 7 Feb 2017 16:51:35 +0100 Subject: Add some info for update a file with curl via the API --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cb5843b..1f8eae6 100644 --- a/README.md +++ b/README.md @@ -21,5 +21,10 @@ Ready to run in production? Please [check our deployment guides](http://www.phoe ## Usage of the api: -For upload a file: -`curl --form "audio_file[audio_path]=@yolo" --form "audio_file[transcription_file_path]=ooooo" --form "audio_file[audio_duration]=blabla" http://127.0.0.1:4000/api/audio_file` +To upload a file: + +`curl --form "audio_file[audio_path]=@RapportAssemblee.mp4" --form "audio_file[transcription_file_path]=RappooortAssemblee.mp4" --form "audio_file[audio_duration]=00:00" http://127.0.0.1:4000/api/audio_file` + +To update a file: + +`curl --form "audio_file[audio_path]=@RapportAssemblee.mp4" --form "audio_file[transcription_file_path]=RapportAssemblee.mp4" --form "audio_file[audio_duration]=00:00" -X PATCH http://127.0.0.1:4000/audio_file/42` -- cgit v1.2.1