Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

URL /api/stool-color/
Description

GET: Fetching all barcodes with their associated color

MethodGET
Request Body Data


"Response
{
  "colors": [
    {
      "barcode_id": "XXXXX", 
      "color": "XXXXX"
    }, 
    {
      "barcode_id": "XXX", 
      "color": "XXX"
    },
...
]
}, 200


URL /api/stool-colorbarcodes/
Description

GET: Fetch all valid barcodes in MongoDB

MethodGET
Request Body Data


"Response
{
  "barcode_id": [
    "XXX1", 
    "XXX2", 
    "XXX3", 
...
]
}, 200


URL /api/stool-picture/<barcode_id>
Description

GET: Fetch an image for the given barcode_id

Valid barcode_id can be fetched using /api/stool-barcodes/

MethodGET
Url Param

barcode_id

Response
if <barcode_id> is valid:
image of its output color as .png image , Status code 200
if <barcode_id> is not valid:
   { "message": "barcode: barcode_id not found" }, Status code 404