Skip to content
This repository has been archived by the owner on Jan 3, 2018. It is now read-only.

adding route and file for currently selected region #1

Merged
merged 2 commits into from
Feb 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions data/currentRegion.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"totalCount" : 1,
"count" : 1,
"offset" : 0,
"limit" : 50,
"regionAggregations" : [ {
"type" : "hits",
"hits" : [ {
"key" : "userRegionCount",
"count" : 56
} ]
} ],
"links" : {
"self" : {
"href" : "${context}/sdk/platform/v1/regions?currentlySelected=true"
},
"user" : {
"href" : "${context}/sdk/platform/v1/users/aka123456789"
}
},
"regions" : [ {
"links": {
"self": {
"href": "${context}/sdk/platform/v1/regions/FL"
}
},
"id": "FL",
"value": "Florida",
"currentlySelected": true
} ]
}
6 changes: 6 additions & 0 deletions routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@
"params": {
"userId": "aka123456789"
}
},
{
"file": "currentRegion.json",
"params": {
"currentlySelected": true
}
}
]
}
Expand Down