db.json example:
{
"articles":[{"art_id":1,"cat_id":1,"article":"Communication Device","description":"Small communication device in the shape of a pencil.","price":49.9900,"instock":25}],
"customers":[{"cust_id":1,"lastname":"De Vlieger","firstname":"Mehdi","city":"Bruges","birthdate":"1990-05-30"}]
}
Request example:
PUT: http://localhost:3000/articles?article=Communication%20Device
BODY: To change the price
{
"art_id": 1,
"cat_id": 1,
"article": "Communication Device",
"description": "Small communication device in the shape of a pencil.",
"price": 39.99,
"instock": 25
}
RESPONSE: 404 Not Found