Advertisement
koledaivan

Untitled

Dec 12th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.21 KB | None | 0 0
  1. запрос GET
  2.  
  3. http://delivery.moscowfresh.ru/route/113
  4.  
  5. ответ
  6.  
  7. {
  8.     "id": 113,
  9.     "shop": {
  10.         "name": "Moscow Fresh"
  11.     },
  12.     "orders": [
  13.         58
  14.     ],
  15.     "status": 0,
  16.     "start_time": null,
  17.     "end_time": null,
  18.     "estimated_distance": null,
  19.     "estimated_time": null,
  20.     "courier": null
  21. }
  22.  
  23. Вижу, что order с order_shop_id 58 имеет id 159, делаю запрос
  24.  
  25. http://delivery.moscowfresh.ru/order/159
  26.  
  27. ответ
  28.  
  29. {
  30.     "id": 159,
  31.     "shop": {
  32.         "name": "Moscow Fresh"
  33.     },
  34.     "point": {
  35.         "id": 237,
  36.         "lng": 30.3139972,
  37.         "lat": 59.9251684,
  38.         "point_type": 0,
  39.         "coords": "SRID=4326;POINT (30.3139972 59.9251684)",
  40.         "address": "Садовая",
  41.         "priority": 0,
  42.         "estimated_visit_time": null,
  43.         "directions_response": null,
  44.         "time_to_next_point": null,
  45.         "route": 113
  46.     },
  47.     "status": 0,
  48.     "order_shop_id": 58,
  49.     "weight": "0.000",
  50.     "price": "0.000",
  51.     "heavy": false,
  52.     "eco": false,
  53.     "courier": null
  54. }
  55.  
  56. статус order не изменяется, несмотря на то, что этот order уже назначен в route
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement