Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "name": "load-cities",
- "type": "load",
- "request": {
- "url": "https://cg.technolab.com.ru/v1/screens/cities",
- "headers": {
- "Content-Type": "application/x-www-form-urlencoded",
- "x-app-token": "2ab2998a-e80e-11e8-9f32-f2801f1b9fd1",
- "X-User-Latitude": "{{action.lat}}",
- "X-User-Longitude": "{{action.lon}}",
- "Authorization": "{{shared.Authorization}}"
- },
- "type": "get",
- "parameters": {
- "page": "{{action.page}}"
- }
- },
- "response": {
- "deserializer": "cities-deserializer",
- "deserializers": [
- {
- "name": "cities-deserializer",
- "type": "object",
- "map": {
- "objects": {
- "city.{{iterator#0}}.id": "{{data.items.{{iterator#0}}.id}}",
- "city.{{iterator#0}}.title": "{{data.items.{{iterator#0}}.title}}",
- "city.{{iterator#0}}.image_path": "{{data.items.{{iterator#0}}.images.0.source.image}}",
- "city.{{iterator#0}}.image_color": "{{data.items.{{iterator#0}}.images.0.source.avg}}"
- }
- }
- }
- ]
- }
- },
- {
- "name": "tap-city-open-home",
- "type": "open-module",
- "module_parameters": {
- "type": "navigator-home",
- "name": "navigator-home"
- },
- "transition_parameters": {
- "transition_type": "push"
- }
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement