Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -> La logare am rezolvat
- ->>>>> Operator requests
- - Get orders :
- - http://localhost:5000/api/staff/orders?location="mylocation" -> GET request -> returneaza jsonu pt orders(aici o sa fac un print si dupa daca e vreun nume diferit mapez dp json )
- - Change order status :
- - http://localhost:5000/api/staff/orders/changeStatus -> POST request -> trimit {orderId,status} si verific daca response-ul e ok or nu
- ->>>>> Admin requests
- - Get toppings :
- - http://localhost:5000/api/staff/toppings -> GET request -> returneaza json cu toate topingurile si fac doar 1 data request-ul si mapez pe state-ul unde am eu topping-urile
- - Add product :
- - http://localhost:5000/api/staff/products -> POST request-> trimit json de forma :
- {
- "category": 1,
- "name": "Postman",
- "description": "This is a simple description for Postman api",
- "price": 10.99,
- "photo": null,
- "topping": [
- {
- "toppingId": 6
- "toppingName": "Olives"
- }
- ]
- }
- - Statistics :
- - http://localhost:5000/api/staff/statistics -> GET request daca e empty imi ia pt toate locatiile daca ii dau in header location="ceva" o sa imi ia pentru locatia aia.
- - Deals :
- - momentan aici sa vedem cum facem
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement