File

Method: POST

url: /api/v1/file

eg: https://scribie.com/api/v1/file

Description: POST on a given URL will create a file resource representing the audio file in the database.

Request:

curl -k -u a7f31ed17c91c1e541c6213ec73128ed15bccee9: -F "file=@AachenCathedral.mp3" https://scribie.com/api/v1/file

Response:

""%

Method: GET

url: /api/v1/file/file_id

eg: https://scribie.com/api/v1/file/1cc144511f09c19c5089e31248ef7c3ed743430c

Description: GET on a given URL will fetch the contents of the file represented by the file_id.

 

Request:

curl -k -u a7f31ed17c91c1e541c6213ec73128ed15bccee9: https://scribie.com/api/v1/file/1cc144511f09c19c5089e31248ef7c3ed743430c

Response:

""%

Method: POST

url: /api/v1/file/file_id

eg: https://scribie.com/api/v1/file/1cc144511f09c19c5089e31248ef7c3ed743430c

Description: POST on a given URL will is used to cancel or re-order a file represented by the file_id.

Request:

curl -k -u a7f31ed17c91c1e541c6213ec73128ed15bccee9: https://scribie.com/api/v1/file/1cc144511f09c19c5089e31248ef7c3ed743430c

Response:

""%