...
| URL | /api/survey |
| Description | Place a survey into the database in order to be retrieved by the application in the future |
| Header | API_KEY, Authorization |
| Method | PUT |
| Url Param | survey_name |
| Request Body Data | Survey to placed in the database |
| Response | { "message": "Incorrect API key provided." } { "message": "Survey stored!" }, 200 If survey name not passed in, { "message"="Please pass in survey name to create a survey" }, 400 |
| Sample |
Upload APIs
| URL | /api/ |
...
| upload/ | |
| Description | GET: Fetching all uploaded csv files PUT: Upload a csv file |
| Header | API_KEY, Authorization |
| Content-type | raw |
| Method | PUT | GET |
| Url Param |
...
-- | |
| Request Body Data | GET --- PUT { "file_name":"XXX", ... |
| Response | PUT
{ |
{responseList: []}, 200When an incorrect question ID is passed in:
"file_list": [ ... ... 200: Success |
