POST
- /api/v1/user/create
{
"id": 1,
"name": "Name",
"phone": "+79149647499",
"password": "1234",
"address": "test",
"sex": "male",
"role": "admin"
}
GET
- /api/v1/user/{id}
DELETE
- /api/v1/user/delete/{id}
POST
- /api/v1/products/create
{
"id": 1,
"name": "name",
"type": "meat",
"description": "1kg of meat",
"price": 329.0,
"img_url": "google.com/images",
"additional_info": "super good meat"
}
GET
- /api/v1/products/get
- /api/v1/products/get/{type}
- /api/v1/products/get/{order_id}
DELETE
- /api/v1/products/delete/{id}
POST
- /api/v1/order/create
{
"id": 1,
"courier_id": 2,
"status": true
}
GET
- /api/v1/order/delete/{id}
- /api/v1/order/{id}
- /api/v1/order/{courier_id}
DELETE
- /api/v1/order/delete/{id}
POST
- /api/v1/store/create
{
"id": 1,
"name": "name",
"address": "test street"
}
GET
- /api/v1/store/delete/{id}
DELETE
- /api/v1/store/delete/{id}
POST
- /register
{
"phone": "+79149647499",
"password": "pass"
}