added prototype
This commit is contained in:
68
webseite-gulp-ts/backend/api.rest
Normal file
68
webseite-gulp-ts/backend/api.rest
Normal file
@@ -0,0 +1,68 @@
|
||||
# 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/6cbe4783-cfb5-4ed7-8196-9d6b55217de0
|
||||
Content-Type: application/json
|
||||
|
||||
###
|
||||
|
||||
# RESET Products
|
||||
PATCH http://127.0.0.1:8000/api/products/reset
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"reset": true
|
||||
}
|
||||
|
||||
###
|
||||
|
||||
# SAVE Products
|
||||
PATCH http://127.0.0.1:8000/api/products/save
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"save": true
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user