Advertisement
Guest User

Untitled

a guest
Feb 14th, 2020
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.87 KB | None | 0 0
  1.         {
  2.             "name": "load-cities",
  3.             "type": "load",
  4.             "request": {
  5.                 "url": "https://cg.technolab.com.ru/v1/screens/cities",
  6.                 "headers": {
  7.                     "Content-Type": "application/x-www-form-urlencoded",
  8.                     "x-app-token": "2ab2998a-e80e-11e8-9f32-f2801f1b9fd1",
  9.                     "X-User-Latitude": "{{action.lat}}",
  10.                     "X-User-Longitude": "{{action.lon}}",
  11.                     "Authorization": "{{shared.Authorization}}"
  12.                 },
  13.                 "type": "get",
  14.                 "parameters": {
  15.                     "page": "{{action.page}}"
  16.                 }
  17.             },
  18.             "response": {
  19.                 "deserializer": "cities-deserializer",
  20.                 "deserializers": [
  21.                     {
  22.                         "name": "cities-deserializer",
  23.                         "type": "object",
  24.                         "map": {
  25.                             "objects": {
  26.                                 "city.{{iterator#0}}.id": "{{data.items.{{iterator#0}}.id}}",
  27.                                 "city.{{iterator#0}}.title": "{{data.items.{{iterator#0}}.title}}",
  28.                                 "city.{{iterator#0}}.image_path": "{{data.items.{{iterator#0}}.images.0.source.image}}",
  29.                                 "city.{{iterator#0}}.image_color": "{{data.items.{{iterator#0}}.images.0.source.avg}}"
  30.                             }
  31.                         }
  32.                     }
  33.                 ]
  34.             }
  35.         },
  36.         {
  37.             "name": "tap-city-open-home",
  38.             "type": "open-module",
  39.             "module_parameters": {
  40.                 "type": "navigator-home",
  41.                 "name": "navigator-home"
  42.             },
  43.             "transition_parameters": {
  44.                 "transition_type": "push"
  45.             }
  46.         },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement