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