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": "0072140633868XXX", 
      "color": "Rust BrownXXX"
    },
...
]
}, 200


URL /api/stool-color/
Description

GET: Fetch all valid barcodes in MongoDB

MethodGET
Request Body Data


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