-
Notifications
You must be signed in to change notification settings - Fork 12
Remote API Wav
Matthew Martin edited this page Mar 9, 2022
·
1 revision
Returns a list of the wav files that currently exist on the PAM
Body: application/json
[
"[wavfile1_name]/",
"[wavfile2_name]/",
...
"[wavfileN_name]/"
]
Uploads a wav file to the PAM
Body: multipart/form-data
- name - string - the name to store the wav file as
- file - file - the file containing the audio
The audio resource has been uploaded successfully
Body: application/json
{
"result": true,
"code": 201
}
The data sent to the endpoint was incorrect ins some way
Body: application/json
{
"result": false,
"code" : 400,
"reason": [ an array of strings giving the reasons for the failure ]
}
The file sent is not a wav file
Body: application/json
{
"result": false,
"code" : 415,
"reason": [ an array of strings giving the reasons for the failure ]
}