aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2017-02-07 16:51:35 +0100
committerneodarz <neodarz@neodarz.net>2017-02-07 16:51:35 +0100
commite455009b1872815c4fad91c389af9f7a27a6ba28 (patch)
tree211afa94f1136cb57d595f63e2caca2981ca5837
parent3b0278d9ac43095bea152b4e713e2d2d57c75680 (diff)
downloadthe_transcriber_backend-e455009b1872815c4fad91c389af9f7a27a6ba28.tar.xz
the_transcriber_backend-e455009b1872815c4fad91c389af9f7a27a6ba28.zip
Add some info for update a file with curl via the API
Diffstat (limited to '')
-rw-r--r--README.md9
1 files 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`