aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2017-02-07 14:13:41 +0100
committerneodarz <neodarz@neodarz.net>2017-02-07 14:13:41 +0100
commit3b0278d9ac43095bea152b4e713e2d2d57c75680 (patch)
tree5c5f466e16af0fe97a4d31b3abfe7ce006fbca59
parentc7ffa45f020ee115c7349722b547920bfbc37bce (diff)
downloadthe_transcriber_backend-3b0278d9ac43095bea152b4e713e2d2d57c75680.tar.xz
the_transcriber_backend-3b0278d9ac43095bea152b4e713e2d2d57c75680.zip
Add some info for use the api with curl
Diffstat (limited to '')
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index e12b69c..cb5843b 100644
--- a/README.md
+++ b/README.md
@@ -18,3 +18,8 @@ Ready to run in production? Please [check our deployment guides](http://www.phoe
* Docs: https://hexdocs.pm/phoenix
* Mailing list: http://groups.google.com/group/phoenix-talk
* Source: https://github.com/phoenixframework/phoenix
+
+## 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`