From 3b0278d9ac43095bea152b4e713e2d2d57c75680 Mon Sep 17 00:00:00 2001 From: neodarz Date: Tue, 7 Feb 2017 14:13:41 +0100 Subject: Add some info for use the api with curl --- README.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'README.md') 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` -- cgit v1.2.1