URL for test server: https://on-test.diaper.cf:5001
URL for prod server: https://on-prod.diaper.cf:5001
User Creation APIs
| URL | /api/users | ||||||||||
| Description | Create a new user | ||||||||||
| Method | PUT | ||||||||||
| Url Param | --- | ||||||||||
| Request Body Data | { email: xxx, firstName: xxx, lastName: xxx } | ||||||||||
| Response |
| ||||||||||
| Cookie | --- |
User Authentication APIs
...
| URL | /api/sample/<sample_id> |
| Description | Fetching the image of a Specific Sample Response |
| Header | API_KEY, Authorization |
| Method | GET |
| Url Param | sample_id=[string] |
| Request Body Data | PUT Note: SampleData should send as form-data text, and the image should be form-data file. |
| Response | { sample: { id: xxx, dateTime: xxx, hasPict: xxx, hasSurvey: xxx, hasContainer: xxx } } { message: ”This user does not have access to this sample data” } |
| URL | /api/sample/<barcode_id> |
| Description | Fetching a Specific Sample Response |
| Header | API_KEY, Authorization |
| Method | GET |
| Url Param | barcode_id=[string] |
| Request Body Data | -- |
| Response | { sample: { id: xxx, dateTime: xxx, hasPict: xxx, hasSurvey: xxx, hasContainer: xxx } } |
| URL | /api/sample/<barcode_id>/image |
| Description | Fetching the image of a Specific Sample Response |
| Header | API_KEY, Authorization |
| Method | GET |
| Url Param | barcode_id=[string] |
| Request Body Data | -- |
| Response | { message: ”This user does not have access to this sample data” } |
...