diff options
author | neodarz <neodarz@neodarz.net> | 2017-02-07 16:51:35 +0100 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2017-02-07 16:51:35 +0100 |
commit | e455009b1872815c4fad91c389af9f7a27a6ba28 (patch) | |
tree | 211afa94f1136cb57d595f63e2caca2981ca5837 | |
parent | 3b0278d9ac43095bea152b4e713e2d2d57c75680 (diff) | |
download | the_transcriber_backend-e455009b1872815c4fad91c389af9f7a27a6ba28.tar.xz the_transcriber_backend-e455009b1872815c4fad91c389af9f7a27a6ba28.zip |
Add some info for update a file with curl via the API
-rw-r--r-- | README.md | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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` |