gds-api-adapters 38.1.0 → 39.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gds_api/test_helpers/need_api.rb +0 -15
  3. data/lib/gds_api/test_helpers/organisations.rb +5 -0
  4. data/lib/gds_api/version.rb +1 -1
  5. metadata +3 -103
  6. data/test/asset_manager_test.rb +0 -94
  7. data/test/business_support_api_test.rb +0 -45
  8. data/test/content_api_test.rb +0 -712
  9. data/test/content_store_test.rb +0 -55
  10. data/test/email_alert_api_test.rb +0 -189
  11. data/test/fixtures/finder_api/cma-case-schema.json +0 -103
  12. data/test/fixtures/hello.txt +0 -1
  13. data/test/fixtures/new_policies_for_dwp.json +0 -298
  14. data/test/fixtures/no_services_and_info_data_found_fixture.json +0 -14
  15. data/test/fixtures/old_policies_for_dwp.json +0 -413
  16. data/test/fixtures/services_and_info_fixture.json +0 -73
  17. data/test/fixtures/sub_sector_organisations.json +0 -57
  18. data/test/fixtures/world_organisations_australia.json +0 -490
  19. data/test/gds_api_base_test.rb +0 -110
  20. data/test/gov_uk_delivery_test.rb +0 -67
  21. data/test/govuk_headers_test.rb +0 -30
  22. data/test/helpers_test.rb +0 -23
  23. data/test/imminence_api_test.rb +0 -196
  24. data/test/json_client_test.rb +0 -879
  25. data/test/licence_application_api_test.rb +0 -196
  26. data/test/list_response_test.rb +0 -189
  27. data/test/local_links_manager_api_test.rb +0 -236
  28. data/test/mapit_test.rb +0 -117
  29. data/test/maslow_test.rb +0 -12
  30. data/test/middleware/govuk_header_sniffer_test.rb +0 -18
  31. data/test/need_api_test.rb +0 -345
  32. data/test/organisations_api_test.rb +0 -58
  33. data/test/panopticon_registerer_test.rb +0 -118
  34. data/test/panopticon_test.rb +0 -190
  35. data/test/pp_data_in_test.rb +0 -52
  36. data/test/pp_data_out_test.rb +0 -24
  37. data/test/publishing_api/special_route_publisher_test.rb +0 -104
  38. data/test/publishing_api_test.rb +0 -186
  39. data/test/publishing_api_v2/get_expanded_links_test.rb +0 -85
  40. data/test/publishing_api_v2/get_links_test.rb +0 -89
  41. data/test/publishing_api_v2/lookup_test.rb +0 -70
  42. data/test/publishing_api_v2_test.rb +0 -1649
  43. data/test/response_test.rb +0 -245
  44. data/test/router_test.rb +0 -456
  45. data/test/rummager_helpers_test.rb +0 -20
  46. data/test/rummager_test.rb +0 -150
  47. data/test/support_api_test.rb +0 -189
  48. data/test/support_test.rb +0 -95
  49. data/test/test_helper.rb +0 -55
  50. data/test/test_helpers/email_alert_api_test.rb +0 -24
  51. data/test/test_helpers/pact_helper.rb +0 -13
  52. data/test/test_helpers/panopticon_test.rb +0 -44
  53. data/test/test_helpers/publishing_api_test.rb +0 -129
  54. data/test/test_helpers/publishing_api_v2_test.rb +0 -170
  55. data/test/worldwide_api_test.rb +0 -82
@@ -1,55 +0,0 @@
1
- require 'test_helper'
2
- require 'gds_api/content_store'
3
- require 'gds_api/test_helpers/content_store'
4
-
5
- describe GdsApi::ContentStore do
6
- include GdsApi::TestHelpers::ContentStore
7
-
8
- before do
9
- @base_api_url = Plek.current.find("content-store")
10
- @api = GdsApi::ContentStore.new(@base_api_url)
11
- end
12
-
13
- describe "#content_item" do
14
- it "returns the item" do
15
- base_path = "/test-from-content-store"
16
- content_store_has_item(base_path)
17
-
18
- response = @api.content_item(base_path)
19
-
20
- assert_equal base_path, response["base_path"]
21
- end
22
-
23
- it "raises if the item doesn't exist" do
24
- content_store_does_not_have_item("/non-existent")
25
-
26
- assert_raises(GdsApi::HTTPNotFound) do
27
- @api.content_item("/non-existent")
28
- end
29
- end
30
-
31
- it "raises if the item doesn't exist" do
32
- content_store_does_not_have_item("/non-existent")
33
-
34
- assert_raises GdsApi::HTTPNotFound do
35
- @api.content_item("/non-existent")
36
- end
37
- end
38
-
39
- it "raises if the item is gone" do
40
- content_store_has_gone_item("/it-is-gone")
41
-
42
- assert_raises(GdsApi::HTTPGone) do
43
- @api.content_item("/it-is-gone")
44
- end
45
- end
46
-
47
- it "raises if the item is gone" do
48
- content_store_has_gone_item("/it-is-gone")
49
-
50
- assert_raises GdsApi::HTTPGone do
51
- @api.content_item("/it-is-gone")
52
- end
53
- end
54
- end
55
- end
@@ -1,189 +0,0 @@
1
- require 'test_helper'
2
- require 'gds_api/email_alert_api'
3
- require 'gds_api/test_helpers/email_alert_api'
4
-
5
- describe GdsApi::EmailAlertApi do
6
- include GdsApi::TestHelpers::EmailAlertApi
7
-
8
- let(:base_url) { Plek.find("email-alert-api") }
9
- let(:api_client) { GdsApi::EmailAlertApi.new(base_url) }
10
-
11
- let(:title) { "Some Title" }
12
- let(:tags) {
13
- {
14
- "format" => ["some-document-format"],
15
- }
16
- }
17
-
18
- describe "alerts" do
19
- let(:subject) { "Email subject" }
20
- let(:publication_params) {
21
- {
22
- "title" => title,
23
- "subject" => subject,
24
- "tags" => tags,
25
- }
26
- }
27
-
28
- before do
29
- email_alert_api_accepts_alert
30
- end
31
-
32
- it "posts a new alert" do
33
- assert api_client.send_alert(publication_params)
34
-
35
- assert_requested(:post, "#{base_url}/notifications", body: publication_params.to_json)
36
- end
37
-
38
- it "returns the an empty response" do
39
- assert api_client.send_alert(publication_params).to_hash.empty?
40
- end
41
- end
42
-
43
- describe "subscriber lists" do
44
- let(:expected_subscription_url) { "a subscription url" }
45
-
46
- describe "#find_or_create_subscriber_list_by_tags" do
47
- let(:params) {
48
- {
49
- "title" => title,
50
- "tags" => tags,
51
- }
52
- }
53
-
54
- describe "a subscriber list with that tag set does not yet exist" do
55
- before do
56
- email_alert_api_does_not_have_subscriber_list(
57
- "tags" => tags,
58
- )
59
-
60
- email_alert_api_creates_subscriber_list(
61
- "title" => title,
62
- "tags" => tags,
63
- "subscription_url" => expected_subscription_url,
64
- )
65
- end
66
-
67
- it "creates the list and returns its attributes" do
68
- subscriber_list_attrs = api_client.find_or_create_subscriber_list(params)
69
- .to_hash
70
- .fetch("subscriber_list")
71
-
72
- assert_equal(
73
- expected_subscription_url,
74
- subscriber_list_attrs.fetch("subscription_url"),
75
- )
76
- end
77
- end
78
-
79
- describe "a subscriber list with that tag set does already exist" do
80
- before do
81
- email_alert_api_has_subscriber_list(
82
- "title" => "Some Title",
83
- "tags" => tags,
84
- "subscription_url" => expected_subscription_url,
85
- )
86
- end
87
-
88
- it "returns the subscriber list attributes" do
89
- subscriber_list_attrs = api_client.find_or_create_subscriber_list(params)
90
- .to_hash
91
- .fetch("subscriber_list")
92
-
93
- assert_equal(
94
- expected_subscription_url,
95
- subscriber_list_attrs.fetch("subscription_url"),
96
- )
97
- end
98
- end
99
-
100
- describe "when the optional 'document_type' is provided" do
101
- let(:params) {
102
- {
103
- "title" => title,
104
- "tags" => tags,
105
- "document_type" => "travel_advice",
106
- }
107
- }
108
-
109
- before do
110
- email_alert_api_has_subscriber_list(
111
- "title" => "Some Title",
112
- "tags" => tags,
113
- "document_type" => "travel_advice",
114
- "subscription_url" => expected_subscription_url,
115
- )
116
- end
117
-
118
- it "returns the subscriber list attributes" do
119
- subscriber_list_attrs = api_client.find_or_create_subscriber_list(params)
120
- .to_hash
121
- .fetch("subscriber_list")
122
-
123
- assert_equal(
124
- "travel_advice",
125
- subscriber_list_attrs.fetch("document_type")
126
- )
127
- end
128
- end
129
-
130
- describe "when both tags and links are provided" do
131
- let(:links) {
132
- {
133
- "format" => ["some-document-format"]
134
- }
135
- }
136
-
137
- let(:params) {
138
- {
139
- "title" => title,
140
- "tags" => tags,
141
- "links" => links,
142
- }
143
- }
144
-
145
- before do
146
- email_alert_api_has_subscriber_list(
147
- "title" => "Some Title",
148
- "tags" => tags,
149
- "links" => links,
150
- "subscription_url" => expected_subscription_url,
151
- )
152
- end
153
-
154
- it "excludes that attribute from the query string" do
155
- assert_raises do
156
- api_client.find_or_create_subscriber_list(params)
157
- end
158
- end
159
- end
160
- end
161
- end
162
- describe "notifications" do
163
- it "retrieves notifications" do
164
- stubbed_request = email_alert_api_has_notifications([
165
- { "subject" => "Foo" }, { "subject" => "Bar" }
166
- ])
167
- api_client.notifications
168
- assert_requested(stubbed_request)
169
- end
170
-
171
- it "uses the start_at param if present" do
172
- stubbed_request = email_alert_api_has_notifications([
173
- { "subject" => "Foo" }, { "subject" => "Bar" }
174
- ], "101AA")
175
- api_client.notifications("101AA")
176
- assert_requested(stubbed_request)
177
- end
178
- end
179
-
180
- describe "notification" do
181
- before do
182
- @stubbed_request = email_alert_api_has_notification("web_service_bulletin" => { "to_param" => "10001001" })
183
- end
184
- it "retrieves a notification by id" do
185
- api_client.notification("10001001")
186
- assert_requested(@stubbed_request)
187
- end
188
- end
189
- end
@@ -1,103 +0,0 @@
1
- {
2
- "slug": "cma-cases",
3
- "name": "Competition and Markets Authority cases",
4
- "document_noun": "case",
5
- "facets": [
6
- {
7
- "key": "case_type",
8
- "name": "Case type",
9
- "type": "single-select",
10
- "include_blank": "All case types",
11
- "allowed_values": [
12
- {"label": "CA98 and civil cartels", "value": "ca98-and-civil-cartels"},
13
- {"label": "Consumer enforcement", "value": "consumer-enforcement"},
14
- {"label": "Criminal cartels", "value": "criminal-cartels"},
15
- {"label": "Markets", "value": "markets"},
16
- {"label": "Mergers", "value": "mergers"},
17
- {"label": "Regulatory references and appeals", "value": "regulatory-references-and-appeals"},
18
- {"label": "Reviews of orders and undertakings", "value": "review-of-orders-and-undertakings"}
19
- ]
20
- },
21
-
22
- {
23
- "key": "case_state",
24
- "name": "Case state",
25
- "type": "single-select",
26
- "include_blank": false,
27
- "allowed_values": [
28
- {"label": "Open", "value": "open"},
29
- {"label": "Closed", "value": "closed"}
30
- ]
31
- },
32
-
33
- {
34
- "key": "market_sector",
35
- "name": "Market sector",
36
- "type": "single-select",
37
- "include_blank": false,
38
- "allowed_values": [
39
- {"label": "Aerospace", "value": "aerospace"},
40
- {"label": "Agriculture, environment and natural resources", "value": "agriculture-environment-and-natural-resources"},
41
- {"label": "Building and construction", "value": "building-and-construction"},
42
- {"label": "Chemicals", "value": "chemicals"},
43
- {"label": "Clothing, footwear and fashion", "value": "clothing-footwear-and-fashion"},
44
- {"label": "Communications", "value": "communications"},
45
- {"label": "Defence", "value": "defence"},
46
- {"label": "Distribution and Service Industries", "value": "distribution-and-service-industries"},
47
- {"label": "Electronics Industry", "value": "electronics-industry"},
48
- {"label": "Energy", "value": "energy"},
49
- {"label": "Engineering", "value": "engineering"},
50
- {"label": "Financial services", "value": "financial-services"},
51
- {"label": "Fire, police, and security", "value": "fire-police-and-security"},
52
- {"label": "Food manufacturing", "value": "food-manufacturing"},
53
- {"label": "Giftware, jewellery and tableware", "value": "giftware-jewellery-and-tableware"},
54
- {"label": "Healthcare and medical equipment", "value": "healthcare-and-medical-equipment"},
55
- {"label": "Household goods, furniture and furnishings", "value": "household-goods-furniture-and-furnishings"},
56
- {"label": "Mineral extraction, mining and quarrying", "value": "mineral-extraction-mining-and-quarrying"},
57
- {"label": "Motor Industry", "value": "motor-industry"},
58
- {"label": "Oil and Gas refining and Petrochemicals", "value": "oil-and-gas-refining-and-petrochemicals"},
59
- {"label": "Paper printing and packaging", "value": "paper-printing-and-packaging"},
60
- {"label": "Pharmaceuticals", "value": "pharmaceuticals"},
61
- {"label": "Public markets", "value": "public-markets"},
62
- {"label": "Recreation and Leisure", "value": "recreation-and-leisure"},
63
- {"label": "Retail and wholesale", "value": "retail-and-wholesale"},
64
- {"label": "Telecommunications", "value": "telecommunications"},
65
- {"label": "Textiles", "value": "textiles"},
66
- {"label": "Transport", "value": "transport"},
67
- {"label": "Utilities", "value": "utilities"}
68
- ]
69
- },
70
-
71
- {
72
- "key": "outcome_type",
73
- "name": "Outcome",
74
- "type": "single-select",
75
- "include_blank": false,
76
- "allowed_values": [
77
- {"label": "CA98 - administrative priorities", "value": "ca98-administrative-priorities"},
78
- {"label": "CA98 - commitment", "value": "ca98-commitment"},
79
- {"label": "CA98 - infringement Chapter I", "value": "ca98-infringement-chapter-i"},
80
- {"label": "CA98 - infringement Chapter II", "value": "ca98-infringement-chapter-ii"},
81
- {"label": "CA98 - no grounds for action/non-infringement", "value": "ca98-no-grounds-for-action-non-infringement"},
82
- {"label": "Consumer enforcement - court order", "value": "consumer-enforcement-court-order"},
83
- {"label": "Consumer enforcement - no action", "value": "consumer-enforcement-no-action"},
84
- {"label": "Consumer enforcement - undertakings", "value": "consumer-enforcement-undertakings"},
85
- {"label": "Criminal cartels - verdict", "value": "criminal-cartels-verdict"},
86
- {"label": "Markets - phase 1 no enforcement action", "value": "markets-phase-1-no-enforcement-action"},
87
- {"label": "Markets - phase 1 referral", "value": "markets-phase-1-referral"},
88
- {"label": "Markets - phase 1 undertakings in lieu of reference", "value": "markets-phase-1-undertakings-in-lieu-of-reference"},
89
- {"label": "Markets - phase 2 adverse effect on competition leading to remedies", "value": "markets-phase-2-adverse-effect-on-competition-leading-to-remedies"},
90
- {"label": "Markets - phase 2 clearance - no adverse effect on competition", "value": "markets-phase-2-clearance-no-adverse-effect-on-competition"},
91
- {"label": "Markets - phase 2 decision to dispense with procedural obligations", "value": "markets-phase-2-decision-to-dispense-with-procedural-obligations"},
92
- {"label": "Mergers - phase 1 clearance with undertakings in lieu", "value": "mergers-phase-1-clearance-with-undertakings-in-lieu"},
93
- {"label": "Mergers - phase 1 clearance", "value": "mergers-phase-1-clearance"},
94
- {"label": "Mergers - phase 1 found not to qualify", "value": "mergers-phase-1-found-not-to-qualify"},
95
- {"label": "Mergers - phase 1 referral", "value": "mergers-phase-1-referral"},
96
- {"label": "Mergers - phase 2 clearance with remedies", "value": "mergers-phase-2-clearance-with-remedies"},
97
- {"label": "Mergers - phase 2 clearance", "value": "mergers-phase-2-clearance"},
98
- {"label": "Mergers - phase 2 prohibition", "value": "mergers-phase-2-prohibition"},
99
- {"label": "Regulatory references and appeals - final determination", "value": "regulatory-references-and-appeals-final-determination"}
100
- ]
101
- }
102
- ]
103
- }
@@ -1 +0,0 @@
1
- Hello, world!
@@ -1,298 +0,0 @@
1
- {
2
- "results": [
3
- {
4
- "title": "Welfare reform",
5
- "description": "The governments policy on welfare reform",
6
- "link": "/government/policies/welfare-reform",
7
- "slug": "welfare-reform",
8
- "format": "policy",
9
- "organisations": [
10
- {
11
- "slug": "department-for-work-pensions",
12
- "link": "/government/organisations/department-for-work-pensions",
13
- "title": "Department for Work and Pensions",
14
- "acronym": "DWP",
15
- "organisation_type": "Ministerial department",
16
- "organisation_state": "live"
17
- }
18
- ],
19
- "public_timestamp": "2015-04-23T09:31:18.369Z",
20
- "index": "mainstream",
21
- "es_score": null,
22
- "_id": "/government/policies/welfare-reform",
23
- "document_type": "policy"
24
- },
25
- {
26
- "title": "State Pension simplification",
27
- "description": "The governments policy on state pension simplification",
28
- "link": "/government/policies/state-pension-simplification",
29
- "slug": "state-pension-simplification",
30
- "format": "policy",
31
- "organisations": [
32
- {
33
- "slug": "department-for-work-pensions",
34
- "link": "/government/organisations/department-for-work-pensions",
35
- "title": "Department for Work and Pensions",
36
- "acronym": "DWP",
37
- "organisation_type": "Ministerial department",
38
- "organisation_state": "live"
39
- }
40
- ],
41
- "public_timestamp": "2015-04-23T09:31:16.374Z",
42
- "index": "mainstream",
43
- "es_score": null,
44
- "_id": "/government/policies/state-pension-simplification",
45
- "document_type": "policy"
46
- },
47
- {
48
- "title": "State Pension age",
49
- "description": "The governments policy on state pension age",
50
- "link": "/government/policies/state-pension-age",
51
- "slug": "state-pension-age",
52
- "format": "policy",
53
- "organisations": [
54
- {
55
- "slug": "department-for-work-pensions",
56
- "link": "/government/organisations/department-for-work-pensions",
57
- "title": "Department for Work and Pensions",
58
- "acronym": "DWP",
59
- "organisation_type": "Ministerial department",
60
- "organisation_state": "live"
61
- }
62
- ],
63
- "public_timestamp": "2015-04-23T09:31:16.279Z",
64
- "index": "mainstream",
65
- "es_score": null,
66
- "_id": "/government/policies/state-pension-age",
67
- "document_type": "policy"
68
- },
69
- {
70
- "title": "Poverty and social justice",
71
- "description": "The governments policy on poverty and social justice",
72
- "link": "/government/policies/poverty-and-social-justice",
73
- "slug": "poverty-and-social-justice",
74
- "format": "policy",
75
- "organisations": [
76
- {
77
- "slug": "department-for-work-pensions",
78
- "link": "/government/organisations/department-for-work-pensions",
79
- "title": "Department for Work and Pensions",
80
- "acronym": "DWP",
81
- "organisation_type": "Ministerial department",
82
- "organisation_state": "live"
83
- },
84
- {
85
- "slug": "department-for-education",
86
- "link": "/government/organisations/department-for-education",
87
- "title": "Department for Education",
88
- "acronym": "DfE",
89
- "organisation_type": "Ministerial department",
90
- "organisation_state": "live"
91
- }
92
- ],
93
- "public_timestamp": "2015-04-23T09:31:13.699Z",
94
- "index": "mainstream",
95
- "es_score": null,
96
- "_id": "/government/policies/poverty-and-social-justice",
97
- "document_type": "policy"
98
- },
99
- {
100
- "title": "Older people",
101
- "description": "The governments policy on older people",
102
- "link": "/government/policies/older-people",
103
- "slug": "older-people",
104
- "format": "policy",
105
- "organisations": [
106
- {
107
- "slug": "department-for-work-pensions",
108
- "link": "/government/organisations/department-for-work-pensions",
109
- "title": "Department for Work and Pensions",
110
- "acronym": "DWP",
111
- "organisation_type": "Ministerial department",
112
- "organisation_state": "live"
113
- }
114
- ],
115
- "public_timestamp": "2015-04-23T09:31:12.726Z",
116
- "index": "mainstream",
117
- "es_score": null,
118
- "_id": "/government/policies/older-people",
119
- "document_type": "policy"
120
- },
121
- {
122
- "title": "Household energy",
123
- "description": "The governments policy on household energy",
124
- "link": "/government/policies/household-energy",
125
- "slug": "household-energy",
126
- "format": "policy",
127
- "organisations": [
128
- {
129
- "slug": "ofgem",
130
- "link": "/government/organisations/ofgem",
131
- "title": "Ofgem",
132
- "organisation_state": "exempt"
133
- },
134
- {
135
- "slug": "department-for-work-pensions",
136
- "link": "/government/organisations/department-for-work-pensions",
137
- "title": "Department for Work and Pensions",
138
- "acronym": "DWP",
139
- "organisation_type": "Ministerial department",
140
- "organisation_state": "live"
141
- },
142
- {
143
- "slug": "department-for-communities-and-local-government",
144
- "link": "/government/organisations/department-for-communities-and-local-government",
145
- "title": "Department for Communities and Local Government",
146
- "acronym": "DCLG",
147
- "organisation_type": "Ministerial department",
148
- "organisation_state": "live"
149
- },
150
- {
151
- "slug": "department-of-energy-climate-change",
152
- "link": "/government/organisations/department-of-energy-climate-change",
153
- "title": "Department of Energy & Climate Change",
154
- "acronym": "DECC",
155
- "organisation_type": "Ministerial department",
156
- "organisation_state": "live"
157
- }
158
- ],
159
- "public_timestamp": "2015-04-23T09:31:09.099Z",
160
- "index": "mainstream",
161
- "es_score": null,
162
- "_id": "/government/policies/household-energy",
163
- "document_type": "policy"
164
- },
165
- {
166
- "title": "Health and safety reform",
167
- "description": "The governments policy on health and safety reform",
168
- "link": "/government/policies/health-and-safety-reform",
169
- "slug": "health-and-safety-reform",
170
- "format": "policy",
171
- "organisations": [
172
- {
173
- "slug": "department-for-work-pensions",
174
- "link": "/government/organisations/department-for-work-pensions",
175
- "title": "Department for Work and Pensions",
176
- "acronym": "DWP",
177
- "organisation_type": "Ministerial department",
178
- "organisation_state": "live"
179
- }
180
- ],
181
- "public_timestamp": "2015-04-23T09:31:08.391Z",
182
- "index": "mainstream",
183
- "es_score": null,
184
- "_id": "/government/policies/health-and-safety-reform",
185
- "document_type": "policy"
186
- },
187
- {
188
- "title": "European funds",
189
- "description": "The governments policy on european funds",
190
- "link": "/government/policies/european-funds",
191
- "slug": "european-funds",
192
- "format": "policy",
193
- "organisations": [
194
- {
195
- "slug": "department-for-work-pensions",
196
- "link": "/government/organisations/department-for-work-pensions",
197
- "title": "Department for Work and Pensions",
198
- "acronym": "DWP",
199
- "organisation_type": "Ministerial department",
200
- "organisation_state": "live"
201
- },
202
- {
203
- "slug": "department-for-communities-and-local-government",
204
- "link": "/government/organisations/department-for-communities-and-local-government",
205
- "title": "Department for Communities and Local Government",
206
- "acronym": "DCLG",
207
- "organisation_type": "Ministerial department",
208
- "organisation_state": "live"
209
- },
210
- {
211
- "slug": "department-for-environment-food-rural-affairs",
212
- "link": "/government/organisations/department-for-environment-food-rural-affairs",
213
- "title": "Department for Environment, Food & Rural Affairs",
214
- "acronym": "Defra",
215
- "organisation_type": "Ministerial department",
216
- "organisation_state": "live"
217
- },
218
- {
219
- "slug": "department-for-business-innovation-skills",
220
- "link": "/government/organisations/department-for-business-innovation-skills",
221
- "title": "Department for Business, Innovation & Skills",
222
- "acronym": "BIS",
223
- "organisation_type": "Ministerial department",
224
- "organisation_state": "live"
225
- },
226
- {
227
- "slug": "hm-treasury",
228
- "link": "/government/organisations/hm-treasury",
229
- "title": "HM Treasury",
230
- "acronym": "HMT",
231
- "organisation_type": "Ministerial department",
232
- "organisation_state": "live"
233
- }
234
- ],
235
- "public_timestamp": "2015-04-23T09:31:06.188Z",
236
- "index": "mainstream",
237
- "es_score": null,
238
- "_id": "/government/policies/european-funds",
239
- "document_type": "policy"
240
- },
241
- {
242
- "title": "Employment",
243
- "description": "The governments policy on employment",
244
- "link": "/government/policies/employment",
245
- "slug": "employment",
246
- "format": "policy",
247
- "organisations": [
248
- {
249
- "slug": "department-for-work-pensions",
250
- "link": "/government/organisations/department-for-work-pensions",
251
- "title": "Department for Work and Pensions",
252
- "acronym": "DWP",
253
- "organisation_type": "Ministerial department",
254
- "organisation_state": "live"
255
- },
256
- {
257
- "slug": "hm-treasury",
258
- "link": "/government/organisations/hm-treasury",
259
- "title": "HM Treasury",
260
- "acronym": "HMT",
261
- "organisation_type": "Ministerial department",
262
- "organisation_state": "live"
263
- }
264
- ],
265
- "public_timestamp": "2015-04-23T09:31:05.592Z",
266
- "index": "mainstream",
267
- "es_score": null,
268
- "_id": "/government/policies/employment",
269
- "document_type": "policy"
270
- },
271
- {
272
- "title": "Child maintenance reform",
273
- "description": "The governments policy on child maintenance reform",
274
- "link": "/government/policies/child-maintenance-reform",
275
- "slug": "child-maintenance-reform",
276
- "format": "policy",
277
- "organisations": [
278
- {
279
- "slug": "department-for-work-pensions",
280
- "link": "/government/organisations/department-for-work-pensions",
281
- "title": "Department for Work and Pensions",
282
- "acronym": "DWP",
283
- "organisation_type": "Ministerial department",
284
- "organisation_state": "live"
285
- }
286
- ],
287
- "public_timestamp": "2015-04-23T09:31:02.116Z",
288
- "index": "mainstream",
289
- "es_score": null,
290
- "_id": "/government/policies/child-maintenance-reform",
291
- "document_type": "policy"
292
- }
293
- ],
294
- "total": 11,
295
- "start": 0,
296
- "facets": {},
297
- "suggested_queries": []
298
- }