Advertisement
Guest User

re

a guest
May 19th, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -> La logare am rezolvat
  2. ->>>>> Operator requests
  3. - Get orders :
  4.     - 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 )
  5. - Change order status :
  6.     - http://localhost:5000/api/staff/orders/changeStatus -> POST request -> trimit {orderId,status} si verific daca response-ul e ok or nu
  7.  
  8. ->>>>> Admin requests
  9. - Get toppings :
  10.     - 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
  11. - Add product :
  12.     - http://localhost:5000/api/staff/products -> POST request-> trimit json de forma :
  13.         {
  14.             "category": 1,
  15.             "name": "Postman",
  16.             "description": "This is a simple description for Postman api",
  17.             "price": 10.99,
  18.             "photo": null,
  19.             "topping": [
  20.                 {
  21.                     "toppingId": 6
  22.                     "toppingName": "Olives"
  23.                 }
  24.             ]
  25.         }
  26. - Statistics :
  27.     - 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.
  28. - Deals :
  29.     - momentan aici sa vedem cum facem
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement