Bins

Attributes

  • id uuid

    Unique identifier for the object.

  • name string

    The name of the bin.

  • type integer

  • width integer

  • depth integer

  • height integer

  • color integer

Endpoints

List Bins

/api/bins

Get the bins from the PPG database and return a JSON response.

Arguments

  • name string

Request with curl
curl "http://[Your IP] /api/bins" \ -X get \ -H "Content-Type: application/json" \ -H "Authorization: Bearer [Your JWT Access Token]"
Example Response
{ "bins": [{ "id": "uuid", "name": "string", "type": "integer", "width": "integer", "depth": "integer", "height": "integer", "color": "integer", }] }

Show Bin

/api/bins/[id]

Get a single bin from the PPG database and return a JSON response.

Request with curl
curl "http://[Your IP] /api/bins/[id]" \ -X get \ -H "Content-Type: application/json" \ -H "Authorization: Bearer [Your JWT Access Token]"
Example Response
{ "bins": [{ "id": "uuid", "name": "string", "type": "integer", "width": "integer", "depth": "integer", "height": "integer", "color": "integer", }] }