pattana 0.1.11 → 0.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/pattana/api/v1/cities_controller.rb +4 -4
- data/app/controllers/pattana/api/v1/countries_controller.rb +5 -2
- data/app/controllers/pattana/api/v1/regions_controller.rb +2 -2
- data/app/controllers/pattana/application_controller.rb +10 -0
- data/app/controllers/pattana/cities_controller.rb +1 -1
- data/app/controllers/pattana/countries_controller.rb +59 -3
- data/app/controllers/pattana/dashboard_controller.rb +1 -1
- data/app/controllers/pattana/regions_controller.rb +55 -3
- data/app/models/city.rb +2 -2
- data/app/models/country.rb +2 -2
- data/app/models/region.rb +2 -2
- data/app/serializers/city_preview_serializer.rb +1 -1
- data/app/serializers/country_preview_serializer.rb +1 -1
- data/app/serializers/region_preview_serializer.rb +1 -1
- data/app/views/pattana/api/v1/docs/cities_in_a_country/_pos_case_1.html.erb +12 -4
- data/app/views/pattana/api/v1/docs/cities_in_a_country/_pos_case_2.html.erb +12 -4
- data/app/views/pattana/api/v1/docs/cities_in_a_country/_pos_case_3.html.erb +12 -4
- data/app/views/pattana/api/v1/docs/cities_in_a_country/_pos_case_4.html.erb +12 -4
- data/app/views/pattana/api/v1/docs/cities_in_a_region/_pos_case_1.html.erb +12 -4
- data/app/views/pattana/api/v1/docs/cities_in_a_region/_pos_case_2.html.erb +12 -4
- data/app/views/pattana/api/v1/docs/cities_in_a_region/_pos_case_3.html.erb +11 -4
- data/app/views/pattana/api/v1/docs/cities_in_a_region/_pos_case_4.html.erb +12 -4
- data/app/views/pattana/api/v1/docs/countries/_pos_case_1.html.erb +11 -4
- data/app/views/pattana/api/v1/docs/countries/_pos_case_2.html.erb +12 -17
- data/app/views/pattana/api/v1/docs/countries/_pos_case_3.html.erb +19 -15
- data/app/views/pattana/api/v1/docs/countries/_pos_case_4.html.erb +6 -20
- data/app/views/pattana/api/v1/docs/regions/_pos_case_1.html.erb +12 -3
- data/app/views/pattana/api/v1/docs/regions/_pos_case_2.html.erb +14 -5
- data/app/views/pattana/api/v1/docs/regions/_pos_case_3.html.erb +12 -3
- data/app/views/pattana/api/v1/docs/regions/_pos_case_4.html.erb +13 -4
- data/app/views/pattana/cities/_show.html.erb +31 -0
- data/app/views/pattana/countries/_show.html.erb +106 -39
- data/app/views/pattana/countries/cities.js.erb +5 -2
- data/app/views/pattana/countries/index.html.erb +10 -2
- data/app/views/pattana/countries/regions.js.erb +5 -2
- data/app/views/pattana/country_cities/_action_buttons.html.erb +17 -0
- data/app/views/pattana/country_regions/_action_buttons.html.erb +17 -0
- data/app/views/pattana/dashboard/index.html.erb +3 -3
- data/app/views/pattana/region_cities/_action_buttons.html.erb +17 -0
- data/app/views/pattana/regions/_show.html.erb +68 -22
- data/app/views/pattana/regions/cities.js.erb +5 -2
- data/lib/pattana/version.rb +1 -1
- metadata +7 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94df381248e180d50b4e9680aaf0ad49ed10b301
|
4
|
+
data.tar.gz: ea14b07819c6a74035d2fd7176265c9086367306
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 387fd3a4a1cd53b462d748e5d3898539215de8c1e0a2e0864dc277325b9edfa9e4afbc9f89efb2494841e79e9599e45ef5b9ca74b371530119fae374f014f742
|
7
|
+
data.tar.gz: 5d63f5ede54abf683093cccb20616e2ff893ec977f28b66ed21cf37595ad14dc8890be5d90ed755d345a5dd60764bf3019125423b11422fa3b918a025875c42d
|
@@ -7,9 +7,9 @@ module Pattana
|
|
7
7
|
proc_code = Proc.new do
|
8
8
|
@country = Country.find_by_id(params[:country_id])
|
9
9
|
if @country
|
10
|
-
@relation = @country.cities.includes(:region, :country).
|
10
|
+
@relation = @country.cities.includes(:region, :country).show_in_api(true).order("cities.name ASC")
|
11
11
|
@relation = @relation.search(params[:q]) if params[:q]
|
12
|
-
@relation = @relation.operational if params[:operational] && ["y","t","yes","true",1].include?(params[:operational].downcase)
|
12
|
+
@relation = @relation.operational(true) if params[:operational] && ["y","t","yes","true",1].include?(params[:operational].downcase)
|
13
13
|
@cities = @relation.all
|
14
14
|
@data = ActiveModelSerializers::SerializableResource.new(@cities, each_serializer: CityPreviewSerializer)
|
15
15
|
@success = true
|
@@ -28,9 +28,9 @@ module Pattana
|
|
28
28
|
proc_code = Proc.new do
|
29
29
|
@region = Region.find_by_id(params[:region_id])
|
30
30
|
if @region
|
31
|
-
@relation = @region.cities.includes(:region, :country).
|
31
|
+
@relation = @region.cities.includes(:region, :country).show_in_api(true).order("cities.name ASC")
|
32
32
|
@relation = @relation.search(params[:q]) if params[:q]
|
33
|
-
@relation = @relation.operational if params[:operational] && ["y","t","yes","true",1].include?(params[:operational].downcase)
|
33
|
+
@relation = @relation.operational(true) if params[:operational] && ["y","t","yes","true",1].include?(params[:operational].downcase)
|
34
34
|
@cities = @relation.all
|
35
35
|
@data = ActiveModelSerializers::SerializableResource.new(@cities, each_serializer: CityPreviewSerializer)
|
36
36
|
@success = true
|
@@ -5,15 +5,18 @@ module Pattana
|
|
5
5
|
|
6
6
|
def index
|
7
7
|
proc_code = Proc.new do
|
8
|
-
@relation = Country.show_in_api.order("countries.name ASC")
|
8
|
+
@relation = Country.show_in_api(true).order("countries.name ASC")
|
9
9
|
@relation = @relation.search(params[:q]) if params[:q]
|
10
|
-
@relation = @relation.operational if params[:operational] && ["y","t","yes","true",1].include?(params[:operational].downcase)
|
10
|
+
@relation = @relation.operational(true) if params[:operational] && ["y","t","yes","true",1].include?(params[:operational].downcase)
|
11
11
|
@countries = @relation.all
|
12
12
|
@data = ActiveModelSerializers::SerializableResource.new(@countries, each_serializer: CountryPreviewSerializer)
|
13
13
|
@success = true
|
14
14
|
end
|
15
15
|
render_json_response(proc_code)
|
16
16
|
end
|
17
|
+
|
18
|
+
|
19
|
+
|
17
20
|
end
|
18
21
|
end
|
19
22
|
end
|
@@ -7,9 +7,9 @@ module Pattana
|
|
7
7
|
proc_code = Proc.new do
|
8
8
|
@country = Country.find_by_id(params[:country_id])
|
9
9
|
if @country
|
10
|
-
@relation = @country.regions.includes(:country).
|
10
|
+
@relation = @country.regions.includes(:country).show_in_api(true).order("regions.name ASC")
|
11
11
|
@relation = @relation.search(params[:q]) if params[:q]
|
12
|
-
@relation = @relation.operational if params[:operational] && ["y","t","yes","true",1].include?(params[:operational].downcase)
|
12
|
+
@relation = @relation.operational(true) if params[:operational] && ["y","t","yes","true",1].include?(params[:operational].downcase)
|
13
13
|
@regions = @relation.all
|
14
14
|
@data = ActiveModelSerializers::SerializableResource.new(@regions, each_serializer: RegionPreviewSerializer)
|
15
15
|
@success = true
|
@@ -8,6 +8,16 @@ module Pattana
|
|
8
8
|
def set_default_title
|
9
9
|
set_title("Pattana Admin - Database of Countries, Regions and Cities")
|
10
10
|
end
|
11
|
+
|
12
|
+
def configure_filter_param_mapping
|
13
|
+
@filter_param_mapping = default_filter_param_mapping
|
14
|
+
@filter_param_mapping[:show_in_api] = :show_in_api
|
15
|
+
@filter_param_mapping[:operational] = :operational
|
16
|
+
end
|
17
|
+
|
18
|
+
def breadcrumb_home_path
|
19
|
+
pattana.dashboard_path
|
20
|
+
end
|
11
21
|
|
12
22
|
end
|
13
23
|
end
|
@@ -115,7 +115,7 @@ module Pattana
|
|
115
115
|
heading: "Manage Cities",
|
116
116
|
icon: "fa-map-marker",
|
117
117
|
description: "Listing all Cities",
|
118
|
-
links: [{name: "
|
118
|
+
links: [{name: "Home", link: breadcrumb_home_path, icon: 'fa-home'},
|
119
119
|
{name: "Manage Cities", link: pattana.cities_path, icon: 'fa-map-marker', active: true}]
|
120
120
|
}
|
121
121
|
end
|
@@ -8,6 +8,11 @@ module Pattana
|
|
8
8
|
parse_filters
|
9
9
|
apply_filters
|
10
10
|
|
11
|
+
@filter_ui_settings[:operational][:drop_down_options] = {remote: true}
|
12
|
+
@filter_ui_settings[:operational][:url_method_name] = "regions_country_url"
|
13
|
+
@filter_ui_settings[:show_in_api][:drop_down_options] = {remote: true}
|
14
|
+
@filter_ui_settings[:show_in_api][:url_method_name] = "regions_country_url"
|
15
|
+
|
11
16
|
@regions = @relation.page(@current_page).per(@per_page)
|
12
17
|
end
|
13
18
|
|
@@ -17,6 +22,11 @@ module Pattana
|
|
17
22
|
|
18
23
|
parse_filters
|
19
24
|
apply_filters
|
25
|
+
|
26
|
+
@filter_ui_settings[:operational][:drop_down_options] = {remote: true}
|
27
|
+
@filter_ui_settings[:operational][:url_method_name] = "cities_country_url"
|
28
|
+
@filter_ui_settings[:show_in_api][:drop_down_options] = {remote: true}
|
29
|
+
@filter_ui_settings[:show_in_api][:url_method_name] = "cities_country_url"
|
20
30
|
|
21
31
|
@cities = @relation.page(@current_page).per(@per_page)
|
22
32
|
end
|
@@ -100,6 +110,10 @@ module Pattana
|
|
100
110
|
|
101
111
|
def apply_filters
|
102
112
|
@relation = @relation.search(@query) if @query
|
113
|
+
|
114
|
+
@relation = @relation.operational(@operational) unless @operational.nil?
|
115
|
+
@relation = @relation.show_in_api(@show_in_api) unless @show_in_api.nil?
|
116
|
+
|
103
117
|
@order_by = "priority, name ASC" unless @order_by
|
104
118
|
@relation = @relation.order(@order_by)
|
105
119
|
end
|
@@ -110,14 +124,56 @@ module Pattana
|
|
110
124
|
{ filter_name: :query },
|
111
125
|
{ filter_name: :status }
|
112
126
|
],
|
113
|
-
boolean_filters: [
|
127
|
+
boolean_filters: [
|
128
|
+
{ filter_name: :show_in_api },
|
129
|
+
{ filter_name: :operational }
|
130
|
+
],
|
114
131
|
reference_filters: [],
|
115
132
|
variable_filters: [],
|
116
133
|
}
|
117
134
|
end
|
118
135
|
|
119
136
|
def configure_filter_ui_settings
|
120
|
-
@filter_ui_settings = {
|
137
|
+
@filter_ui_settings = {
|
138
|
+
operational: {
|
139
|
+
object_filter: false,
|
140
|
+
select_label: "Operation Filter",
|
141
|
+
display_hash: {
|
142
|
+
true => "Operational",
|
143
|
+
false => "Non Operational"
|
144
|
+
},
|
145
|
+
current_value: @operational,
|
146
|
+
values: {
|
147
|
+
"Operational" => true,
|
148
|
+
"Non Operational" => false
|
149
|
+
},
|
150
|
+
current_filters: @filters,
|
151
|
+
filters_to_remove: [],
|
152
|
+
filters_to_add: { query: @query, show_in_api: @show_in_api },
|
153
|
+
url_method_name: 'countries_url',
|
154
|
+
show_all_filter_on_top: true,
|
155
|
+
show_null_filter_on_top: false
|
156
|
+
},
|
157
|
+
show_in_api: {
|
158
|
+
object_filter: false,
|
159
|
+
select_label: "Show in API Filter",
|
160
|
+
display_hash: {
|
161
|
+
true => "Show in API",
|
162
|
+
false => "Hide in API"
|
163
|
+
},
|
164
|
+
current_value: @show_in_api,
|
165
|
+
values: {
|
166
|
+
"Show in API" => true,
|
167
|
+
"Hide in API" => false
|
168
|
+
},
|
169
|
+
current_filters: @filters,
|
170
|
+
filters_to_remove: [],
|
171
|
+
filters_to_add: { query: @query, operational: @operational },
|
172
|
+
url_method_name: 'countries_url',
|
173
|
+
show_all_filter_on_top: true,
|
174
|
+
show_null_filter_on_top: false
|
175
|
+
}
|
176
|
+
}
|
121
177
|
end
|
122
178
|
|
123
179
|
def resource_controller_configuration
|
@@ -133,7 +189,7 @@ module Pattana
|
|
133
189
|
heading: "Manage Countries",
|
134
190
|
icon: "fa-flag-checkered",
|
135
191
|
description: "Listing all Countries",
|
136
|
-
links: [{name: "
|
192
|
+
links: [{name: "Home", link: breadcrumb_home_path, icon: 'fa-home'},
|
137
193
|
{name: "Manage Countries", link: pattana.countries_path, icon: 'fa-flag-checkered', active: true}]
|
138
194
|
}
|
139
195
|
end
|
@@ -11,7 +11,7 @@ module Pattana
|
|
11
11
|
{
|
12
12
|
heading: "Dashboard - Pattana",
|
13
13
|
description: "A Quick view of Countries, Regions & Cities",
|
14
|
-
links: [{name: "Dashboard - Pattana", link:
|
14
|
+
links: [{name: "Dashboard - Pattana", link: breadcrumb_home_path, icon: 'fa-dashboard'}]
|
15
15
|
}
|
16
16
|
end
|
17
17
|
|
@@ -8,6 +8,11 @@ module Pattana
|
|
8
8
|
parse_filters
|
9
9
|
apply_filters
|
10
10
|
|
11
|
+
@filter_ui_settings[:operational][:drop_down_options] = {remote: true}
|
12
|
+
@filter_ui_settings[:operational][:url_method_name] = "cities_region_url"
|
13
|
+
@filter_ui_settings[:show_in_api][:drop_down_options] = {remote: true}
|
14
|
+
@filter_ui_settings[:show_in_api][:url_method_name] = "cities_region_url"
|
15
|
+
|
11
16
|
@cities = @relation.page(@current_page).per(@per_page)
|
12
17
|
end
|
13
18
|
|
@@ -89,7 +94,12 @@ module Pattana
|
|
89
94
|
end
|
90
95
|
|
91
96
|
def apply_filters
|
97
|
+
|
92
98
|
@relation = @relation.search(@query) if @query
|
99
|
+
|
100
|
+
@relation = @relation.operational(@operational) unless @operational.nil?
|
101
|
+
@relation = @relation.show_in_api(@show_in_api) unless @show_in_api.nil?
|
102
|
+
|
93
103
|
@order_by = "name ASC" unless @order_by
|
94
104
|
@relation = @relation.order(@order_by)
|
95
105
|
end
|
@@ -100,14 +110,56 @@ module Pattana
|
|
100
110
|
{ filter_name: :query },
|
101
111
|
{ filter_name: :status }
|
102
112
|
],
|
103
|
-
boolean_filters: [
|
113
|
+
boolean_filters: [
|
114
|
+
{ filter_name: :show_in_api },
|
115
|
+
{ filter_name: :operational }
|
116
|
+
],
|
104
117
|
reference_filters: [],
|
105
118
|
variable_filters: [],
|
106
119
|
}
|
107
120
|
end
|
108
121
|
|
109
122
|
def configure_filter_ui_settings
|
110
|
-
@filter_ui_settings = {
|
123
|
+
@filter_ui_settings = {
|
124
|
+
operational: {
|
125
|
+
object_filter: false,
|
126
|
+
select_label: "Operation Filter",
|
127
|
+
display_hash: {
|
128
|
+
true => "Operational",
|
129
|
+
false => "Non Operational"
|
130
|
+
},
|
131
|
+
current_value: @operational,
|
132
|
+
values: {
|
133
|
+
"Operational" => true,
|
134
|
+
"Non Operational" => false
|
135
|
+
},
|
136
|
+
current_filters: @filters,
|
137
|
+
filters_to_remove: [],
|
138
|
+
filters_to_add: { query: @query, show_in_api: @show_in_api },
|
139
|
+
url_method_name: 'regions_url',
|
140
|
+
show_all_filter_on_top: true,
|
141
|
+
show_null_filter_on_top: false
|
142
|
+
},
|
143
|
+
show_in_api: {
|
144
|
+
object_filter: false,
|
145
|
+
select_label: "Show in API Filter",
|
146
|
+
display_hash: {
|
147
|
+
true => "Show in API",
|
148
|
+
false => "Hide in API"
|
149
|
+
},
|
150
|
+
current_value: @show_in_api,
|
151
|
+
values: {
|
152
|
+
"Show in API" => true,
|
153
|
+
"Hide in API" => false
|
154
|
+
},
|
155
|
+
current_filters: @filters,
|
156
|
+
filters_to_remove: [],
|
157
|
+
filters_to_add: { query: @query, operational: @operational },
|
158
|
+
url_method_name: 'regions_url',
|
159
|
+
show_all_filter_on_top: true,
|
160
|
+
show_null_filter_on_top: false
|
161
|
+
}
|
162
|
+
}
|
111
163
|
end
|
112
164
|
|
113
165
|
def resource_controller_configuration
|
@@ -123,7 +175,7 @@ module Pattana
|
|
123
175
|
heading: "Manage Regions",
|
124
176
|
icon: "fa-globe",
|
125
177
|
description: "Listing all Regions",
|
126
|
-
links: [{name: "
|
178
|
+
links: [{name: "Home", link: breadcrumb_home_path, icon: 'fa-home'},
|
127
179
|
{name: "Manage Regions", link: pattana.regions_path, icon: 'fa-globe', active: true}]
|
128
180
|
}
|
129
181
|
end
|
data/app/models/city.rb
CHANGED
@@ -45,8 +45,8 @@ class City < Pattana::ApplicationRecord
|
|
45
45
|
LOWER(cities.alternative_names) LIKE LOWER('%#{query}%') OR
|
46
46
|
LOWER(cities.iso_code) LIKE LOWER('%#{query}%')")}
|
47
47
|
|
48
|
-
scope :show_in_api,
|
49
|
-
scope :operational,
|
48
|
+
scope :show_in_api, lambda {|val| where("cities.show_in_api is #{val.to_s.upcase}")}
|
49
|
+
scope :operational, lambda {|val| where("cities.operational is #{val.to_s.upcase}")}
|
50
50
|
|
51
51
|
# Import Methods
|
52
52
|
|
data/app/models/country.rb
CHANGED
@@ -39,8 +39,8 @@ class Country < Pattana::ApplicationRecord
|
|
39
39
|
LOWER(iso_alpha_2) LIKE LOWER('%#{query}%') OR
|
40
40
|
LOWER(iso_alpha_3) LIKE LOWER('%#{query}%')")}
|
41
41
|
|
42
|
-
scope :show_in_api,
|
43
|
-
scope :operational,
|
42
|
+
scope :show_in_api, lambda {|val| where("countries.show_in_api is #{val.to_s.upcase}")}
|
43
|
+
scope :operational, lambda {|val| where("countries.operational is #{val.to_s.upcase}")}
|
44
44
|
|
45
45
|
# Import Methods
|
46
46
|
|
data/app/models/region.rb
CHANGED
@@ -33,8 +33,8 @@ class Region < Pattana::ApplicationRecord
|
|
33
33
|
# => ActiveRecord::Relation object
|
34
34
|
scope :search, lambda {|query| joins("INNER JOIN countries co on co.id = regions.country_id").where("LOWER(regions.name) LIKE LOWER('%#{query}%') || LOWER(regions.iso_code) LIKE LOWER('%#{query}%') || LOWER(co.name) LIKE LOWER('%#{query}%')")}
|
35
35
|
|
36
|
-
scope :show_in_api,
|
37
|
-
scope :operational,
|
36
|
+
scope :show_in_api, lambda {|val| where("regions.show_in_api is #{val.to_s.upcase}")}
|
37
|
+
scope :operational, lambda {|val| where("regions.operational is #{val.to_s.upcase}")}
|
38
38
|
|
39
39
|
# Import Methods
|
40
40
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class CityPreviewSerializer < ActiveModel::Serializer
|
2
2
|
include NullAttributeReplacer
|
3
3
|
|
4
|
-
attributes :id, :name, :priority
|
4
|
+
attributes :id, :name, :priority, :operational
|
5
5
|
|
6
6
|
belongs_to :country, serializer: CountryPreviewSerializer
|
7
7
|
belongs_to :region, serializer: RegionPreviewSerializer
|
@@ -17,17 +17,21 @@ api_output = <<-eos
|
|
17
17
|
"id": 21,
|
18
18
|
"name": "Abu Dhabi",
|
19
19
|
"priority": 1000,
|
20
|
+
"operational": true,
|
20
21
|
"country": {
|
21
22
|
"id": 235,
|
22
23
|
"name": "United Arab Emirates",
|
23
24
|
"iso_name": "UNITED ARAB EMIRATES",
|
25
|
+
"iso_alpha_2": "AE",
|
24
26
|
"dialing_prefix": "971",
|
25
|
-
"priority": 1000
|
27
|
+
"priority": 1000,
|
28
|
+
"operational": true
|
26
29
|
},
|
27
30
|
"region": {
|
28
31
|
"id": 14,
|
29
32
|
"name": "Abu Dhabi",
|
30
|
-
"priority": 1000
|
33
|
+
"priority": 1000,
|
34
|
+
"operational": true
|
31
35
|
}
|
32
36
|
},
|
33
37
|
.
|
@@ -37,17 +41,21 @@ api_output = <<-eos
|
|
37
41
|
"id": 8,
|
38
42
|
"name": "Umm al Qaywayn",
|
39
43
|
"priority": 1000,
|
44
|
+
"operational": true,
|
40
45
|
"country": {
|
41
46
|
"id": 235,
|
42
47
|
"name": "United Arab Emirates",
|
43
48
|
"iso_name": "UNITED ARAB EMIRATES",
|
49
|
+
"iso_alpha_2": "AE",
|
44
50
|
"dialing_prefix": "971",
|
45
|
-
"priority": 1000
|
51
|
+
"priority": 1000,
|
52
|
+
"operational": true
|
46
53
|
},
|
47
54
|
"region": {
|
48
55
|
"id": 8,
|
49
56
|
"name": "Umm Al Quwain",
|
50
|
-
"priority": 1000
|
57
|
+
"priority": 1000,
|
58
|
+
"operational": true
|
51
59
|
}
|
52
60
|
}]
|
53
61
|
}
|
@@ -17,17 +17,21 @@ api_output = <<-eos
|
|
17
17
|
"id": 21,
|
18
18
|
"name": "Abu Dhabi",
|
19
19
|
"priority": 1000,
|
20
|
+
"operational": true,
|
20
21
|
"country": {
|
21
22
|
"id": 235,
|
22
23
|
"name": "United Arab Emirates",
|
23
24
|
"iso_name": "UNITED ARAB EMIRATES",
|
25
|
+
"iso_alpha_2": "AE",
|
24
26
|
"dialing_prefix": "971",
|
25
|
-
"priority": 1000
|
27
|
+
"priority": 1000,
|
28
|
+
"operational": true
|
26
29
|
},
|
27
30
|
"region": {
|
28
31
|
"id": 14,
|
29
32
|
"name": "Abu Dhabi",
|
30
|
-
"priority": 1000
|
33
|
+
"priority": 1000,
|
34
|
+
"operational": true
|
31
35
|
}
|
32
36
|
},
|
33
37
|
.
|
@@ -37,17 +41,21 @@ api_output = <<-eos
|
|
37
41
|
"id": 8,
|
38
42
|
"name": "Umm al Qaywayn",
|
39
43
|
"priority": 1000,
|
44
|
+
"operational": true,
|
40
45
|
"country": {
|
41
46
|
"id": 235,
|
42
47
|
"name": "United Arab Emirates",
|
43
48
|
"iso_name": "UNITED ARAB EMIRATES",
|
49
|
+
"iso_alpha_2": "AE",
|
44
50
|
"dialing_prefix": "971",
|
45
|
-
"priority": 1000
|
51
|
+
"priority": 1000,
|
52
|
+
"operational": true
|
46
53
|
},
|
47
54
|
"region": {
|
48
55
|
"id": 8,
|
49
56
|
"name": "Umm Al Quwain",
|
50
|
-
"priority": 1000
|
57
|
+
"priority": 1000,
|
58
|
+
"operational": true
|
51
59
|
}
|
52
60
|
}]
|
53
61
|
}
|
@@ -17,17 +17,21 @@ api_output = <<-eos
|
|
17
17
|
"id": 21,
|
18
18
|
"name": "Abu Dhabi",
|
19
19
|
"priority": 1000,
|
20
|
+
"operational": true,
|
20
21
|
"country": {
|
21
22
|
"id": 235,
|
22
23
|
"name": "United Arab Emirates",
|
23
24
|
"iso_name": "UNITED ARAB EMIRATES",
|
25
|
+
"iso_alpha_2": "AE",
|
24
26
|
"dialing_prefix": "971",
|
25
|
-
"priority": 1000
|
27
|
+
"priority": 1000,
|
28
|
+
"operational": true
|
26
29
|
},
|
27
30
|
"region": {
|
28
31
|
"id": 14,
|
29
32
|
"name": "Abu Dhabi",
|
30
|
-
"priority": 1000
|
33
|
+
"priority": 1000,
|
34
|
+
"operational": true
|
31
35
|
}
|
32
36
|
},
|
33
37
|
.
|
@@ -37,17 +41,21 @@ api_output = <<-eos
|
|
37
41
|
"id": 8,
|
38
42
|
"name": "Umm al Qaywayn",
|
39
43
|
"priority": 1000,
|
44
|
+
"operational": true,
|
40
45
|
"country": {
|
41
46
|
"id": 235,
|
42
47
|
"name": "United Arab Emirates",
|
43
48
|
"iso_name": "UNITED ARAB EMIRATES",
|
49
|
+
"iso_alpha_2": "AE",
|
44
50
|
"dialing_prefix": "971",
|
45
|
-
"priority": 1000
|
51
|
+
"priority": 1000,
|
52
|
+
"operational": true
|
46
53
|
},
|
47
54
|
"region": {
|
48
55
|
"id": 8,
|
49
56
|
"name": "Umm Al Quwain",
|
50
|
-
"priority": 1000
|
57
|
+
"priority": 1000,
|
58
|
+
"operational": true
|
51
59
|
}
|
52
60
|
}]
|
53
61
|
}
|
@@ -17,17 +17,21 @@ api_output = <<-eos
|
|
17
17
|
"id": 21,
|
18
18
|
"name": "Abu Dhabi",
|
19
19
|
"priority": 1000,
|
20
|
+
"operational": true,
|
20
21
|
"country": {
|
21
22
|
"id": 235,
|
22
23
|
"name": "United Arab Emirates",
|
23
24
|
"iso_name": "UNITED ARAB EMIRATES",
|
25
|
+
"iso_alpha_2": "AE",
|
24
26
|
"dialing_prefix": "971",
|
25
|
-
"priority": 1000
|
27
|
+
"priority": 1000,
|
28
|
+
"operational": true
|
26
29
|
},
|
27
30
|
"region": {
|
28
31
|
"id": 14,
|
29
32
|
"name": "Abu Dhabi",
|
30
|
-
"priority": 1000
|
33
|
+
"priority": 1000,
|
34
|
+
"operational": true
|
31
35
|
}
|
32
36
|
},
|
33
37
|
.
|
@@ -37,17 +41,21 @@ api_output = <<-eos
|
|
37
41
|
"id": 8,
|
38
42
|
"name": "Umm al Qaywayn",
|
39
43
|
"priority": 1000,
|
44
|
+
"operational": true,
|
40
45
|
"country": {
|
41
46
|
"id": 235,
|
42
47
|
"name": "United Arab Emirates",
|
43
48
|
"iso_name": "UNITED ARAB EMIRATES",
|
49
|
+
"iso_alpha_2": "AE",
|
44
50
|
"dialing_prefix": "971",
|
45
|
-
"priority": 1000
|
51
|
+
"priority": 1000,
|
52
|
+
"operational": true
|
46
53
|
},
|
47
54
|
"region": {
|
48
55
|
"id": 8,
|
49
56
|
"name": "Umm Al Quwain",
|
50
|
-
"priority": 1000
|
57
|
+
"priority": 1000,
|
58
|
+
"operational": true
|
51
59
|
}
|
52
60
|
}]
|
53
61
|
}
|
@@ -17,17 +17,21 @@ api_output = <<-eos
|
|
17
17
|
"id": 21,
|
18
18
|
"name": "Abu Dhabi",
|
19
19
|
"priority": 1000,
|
20
|
+
"operational": true,
|
20
21
|
"country": {
|
21
22
|
"id": 235,
|
22
23
|
"name": "United Arab Emirates",
|
23
24
|
"iso_name": "UNITED ARAB EMIRATES",
|
25
|
+
"iso_alpha_2": "AE",
|
24
26
|
"dialing_prefix": "971",
|
25
|
-
"priority": 1000
|
27
|
+
"priority": 1000,
|
28
|
+
"operational": true,
|
26
29
|
},
|
27
30
|
"region": {
|
28
31
|
"id": 14,
|
29
32
|
"name": "Abu Dhabi",
|
30
|
-
"priority": 1000
|
33
|
+
"priority": 1000,
|
34
|
+
"operational": true,
|
31
35
|
}
|
32
36
|
},
|
33
37
|
.
|
@@ -37,17 +41,21 @@ api_output = <<-eos
|
|
37
41
|
"id": 8,
|
38
42
|
"name": "Umm al Qaywayn",
|
39
43
|
"priority": 1000,
|
44
|
+
"operational": true,
|
40
45
|
"country": {
|
41
46
|
"id": 235,
|
42
47
|
"name": "United Arab Emirates",
|
43
48
|
"iso_name": "UNITED ARAB EMIRATES",
|
49
|
+
"iso_alpha_2": "AE",
|
44
50
|
"dialing_prefix": "971",
|
45
|
-
"priority": 1000
|
51
|
+
"priority": 1000,
|
52
|
+
"operational": true
|
46
53
|
},
|
47
54
|
"region": {
|
48
55
|
"id": 8,
|
49
56
|
"name": "Umm Al Quwain",
|
50
|
-
"priority": 1000
|
57
|
+
"priority": 1000,
|
58
|
+
"operational": true
|
51
59
|
}
|
52
60
|
}]
|
53
61
|
}
|
@@ -17,17 +17,21 @@ api_output = <<-eos
|
|
17
17
|
"id": 21,
|
18
18
|
"name": "Abu Dhabi",
|
19
19
|
"priority": 1000,
|
20
|
+
"operational": true,
|
20
21
|
"country": {
|
21
22
|
"id": 235,
|
22
23
|
"name": "United Arab Emirates",
|
23
24
|
"iso_name": "UNITED ARAB EMIRATES",
|
25
|
+
"iso_alpha_2": "AE",
|
24
26
|
"dialing_prefix": "971",
|
25
|
-
"priority": 1000
|
27
|
+
"priority": 1000,
|
28
|
+
"operational": true
|
26
29
|
},
|
27
30
|
"region": {
|
28
31
|
"id": 14,
|
29
32
|
"name": "Abu Dhabi",
|
30
|
-
"priority": 1000
|
33
|
+
"priority": 1000,
|
34
|
+
"operational": true
|
31
35
|
}
|
32
36
|
},
|
33
37
|
.
|
@@ -37,17 +41,21 @@ api_output = <<-eos
|
|
37
41
|
"id": 8,
|
38
42
|
"name": "Umm al Qaywayn",
|
39
43
|
"priority": 1000,
|
44
|
+
"operational": true,
|
40
45
|
"country": {
|
41
46
|
"id": 235,
|
42
47
|
"name": "United Arab Emirates",
|
43
48
|
"iso_name": "UNITED ARAB EMIRATES",
|
49
|
+
"iso_alpha_2": "AE",
|
44
50
|
"dialing_prefix": "971",
|
45
|
-
"priority": 1000
|
51
|
+
"priority": 1000,
|
52
|
+
"operational": true
|
46
53
|
},
|
47
54
|
"region": {
|
48
55
|
"id": 8,
|
49
56
|
"name": "Umm Al Quwain",
|
50
|
-
"priority": 1000
|
57
|
+
"priority": 1000,
|
58
|
+
"operational": true
|
51
59
|
}
|
52
60
|
}]
|
53
61
|
}
|