feat: day 29

This commit is contained in:
Philippe Torrel
2026-07-23 14:00:55 +02:00
parent ad296423bc
commit 702443e90e
18 changed files with 1248 additions and 11 deletions

48
webseite/backend/api.rest Normal file
View File

@@ -0,0 +1,48 @@
# BROWSE Products
GET http://127.0.0.1:8000/api/products
###
# READ Product
GET http://127.0.0.1:8000/api/products/c38913d4-9524-461f-85d2-525241166e8e
###
# ADD Product
POST http://127.0.0.1:8000/api/products
Content-Type: application/json
{
"name": "Testproduct",
"price": 9.99
}
###
# UPDATE Product
PUT http://127.0.0.1:8000/api/products
Content-Type: application/json
{
"_id": "940c316b-518c-4a18-b1f6-328e010eef4d",
"name": "Testproduct Updated",
"price": 123.22
}
###
# DELETE Product
DELETE http://127.0.0.1:8000/api/products/940c316b-518c-4a18-b1f6-328e010eef4d
Content-Type: application/json