*** This version of Confluence is for testing only and contains a copy of content from June 29th 2026. No changes will be preserved. ***
...
| URL | /api/samples/ |
| Description | GET: Fetching all samples created from a user PUT: Inserting a new sample [Poop Sample Response] |
| Header | API_KEY, Authorization |
| Content-type | multipart/form-data |
| Method | PUT | GET |
| Url Param | -- |
| Request Body Data | GET --- PUT sampleData: { sampleBarcodeID: xxx, milkBarcodeID:xxx, surveyData: {...} }, image: xxx } Note: SampleData should send as form-data text, and the image should be form-data file. |
| Response | PUT
{ id: xxx, dateTime: xxx, surveyData: [xx, xx], image: img, email: xxx},{ id: xxx, dateTime: xxx, id: barcode id, milk_id: milk id, dateTime: timestamp, surveyData: [xx, xx], image_url: url of sample image, email: xxx@gmail.com }, { ... },] : img, email: xxx}, |
...