Crate smart_fridge

source ·
Expand description

API

METHODROUTEDESCRIPTIONRETURN
GET/api/v2/healthcheckUsed to check the health of the http server(200, body: “OK”)
GET/api/v2/foodGet all row/food from the database(200, body: JSON) or 500
POST/api/v2/foodAdd food in the database204 or 500
GET/api/v2/food/:uuidGet one row/food from the database(200, body: JSON) or 500
DELETE/api/v2/food/:uuidDelete on row/food in the database204 or 500

Modules

  • Module that contains some database functions.
  • Module that manage all the web API.

Constants