The test server ip-address:port is https://dashboard-test.diaper-project.com:5000
The production server ip-address:port is https://dashboard-prod.diaper-project.com:5000
The production server AWS Chalice:port is https://4wuiajclt6.execute-api.us-east-1.amazonaws.com/api/ (No Longer in Use)
| URL | /api/login/ |
| Description | Login a user, and set cookie for authentication |
| Method | POST |
| Url Param | |
| Request Body Data |
|
| Response |
|
| Cookie |
|
...
| URL | /api/registration/ |
| Description | Register a new user. |
| Method | POST |
| Url Param | |
| Request Body Data |
|
| Response |
|
| Cookie |
...
| URL | /api/upload/ |
| Description | GET: Fetching all uploaded species reads PUT: Upload a species read |
| Header | API_KEY |
| Method | PUT | GET |
| Url Param | -- |
| Request Body Data | GET --- PUT { "email":"XXXXX", "barcode_id":"XXXXX", ...
|
| "Response | PUT
{ ... ...
200: Success |
| URL | /api/stool-color/ |
| Description | GET: Fetching all barcodes with their associated color |
| Method | GET |
| Request Body Data | |
| Response | {
"colors": [
{
"barcode_id": "XXXXX",
"color": "XXXXX"
},
{
"barcode_id": "XXX",
"color": "XXX"
}, |
...