Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- запрос GET
- http://delivery.moscowfresh.ru/route/113
- ответ
- {
- "id": 113,
- "shop": {
- "name": "Moscow Fresh"
- },
- "orders": [
- 58
- ],
- "status": 0,
- "start_time": null,
- "end_time": null,
- "estimated_distance": null,
- "estimated_time": null,
- "courier": null
- }
- Вижу, что order с order_shop_id 58 имеет id 159, делаю запрос
- http://delivery.moscowfresh.ru/order/159
- ответ
- {
- "id": 159,
- "shop": {
- "name": "Moscow Fresh"
- },
- "point": {
- "id": 237,
- "lng": 30.3139972,
- "lat": 59.9251684,
- "point_type": 0,
- "coords": "SRID=4326;POINT (30.3139972 59.9251684)",
- "address": "Садовая",
- "priority": 0,
- "estimated_visit_time": null,
- "directions_response": null,
- "time_to_next_point": null,
- "route": 113
- },
- "status": 0,
- "order_shop_id": 58,
- "weight": "0.000",
- "price": "0.000",
- "heavy": false,
- "eco": false,
- "courier": null
- }
- статус order не изменяется, несмотря на то, что этот order уже назначен в route
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement