certificate-factory 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +3 -0
- data/.ruby-version +1 -0
- data/.travis.yml +19 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +154 -0
- data/LICENSE.md +10 -0
- data/README.md +54 -0
- data/Rakefile +114 -0
- data/certificate-factory.gemspec +33 -0
- data/env.example +3 -0
- data/lib/certificate-factory.rb +14 -0
- data/lib/certificate-factory/api.rb +19 -0
- data/lib/certificate-factory/certificate.rb +112 -0
- data/lib/certificate-factory/factory.rb +89 -0
- data/lib/certificate-factory/version.rb +3 -0
- data/spec/api_spec.rb +12 -0
- data/spec/cassettes/CertificateFactory_API/returns_the_correct_URL_for_a_dataset.yml +107 -0
- data/spec/cassettes/CertificateFactory_Certificate/keeps_trying_for_a_result_until_it_gets_one.yml +64 -0
- data/spec/cassettes/CertificateFactory_Certificate/requests_and_gets_a_certificate.yml +781 -0
- data/spec/cassettes/CertificateFactory_Certificate/requests_certificate_creation.yml +39 -0
- data/spec/cassettes/CertificateFactory_Certificate/returns_an_error_if_dataset_already_exists.yml +106 -0
- data/spec/cassettes/CertificateFactory_Factory/builds_certificates_correctly.yml +726 -0
- data/spec/cassettes/CertificateFactory_Factory/creates_the_correct_number_of_certificates_going_over_multiple_pages.yml +4900 -0
- data/spec/cassettes/CertificateFactory_Factory/creates_the_correct_number_of_certificates_when_querying_a_single_page.yml +696 -0
- data/spec/cassettes/CertificateFactory_Factory/stops_when_it_gets_to_the_end_of_a_feed.yml +126 -0
- data/spec/certificate_spec.rb +93 -0
- data/spec/factory_spec.rb +88 -0
- data/spec/fixtures/certificate.json +1 -0
- data/spec/fixtures/feed.atom +97 -0
- data/spec/fixtures/one-page.atom +23 -0
- data/spec/fixtures/single-feed-1.atom +26 -0
- data/spec/fixtures/single-feed-2.atom +32 -0
- data/spec/fixtures/single-feed.atom +24 -0
- data/spec/spec_helper.rb +43 -0
- metadata +254 -0
@@ -0,0 +1,39 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://api%40example.com:<ODC_API_KEY>@open-data-certificate.dev/datasets
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{\"jurisdiction\":\"gb\",\"create_user\":\"true\",\"dataset\":{\"documentationUrl\":\"http://data.gov.uk/dataset/defence-infrastructure-organisation-disposals-database-house-of-commons-report\"}}"
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 202
|
15
|
+
message: Accepted
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Thu, 18 Sep 2014 13:04:09 GMT
|
19
|
+
Content-Type:
|
20
|
+
- application/json; charset=utf-8
|
21
|
+
X-Ua-Compatible:
|
22
|
+
- IE=Edge
|
23
|
+
Cache-Control:
|
24
|
+
- no-cache
|
25
|
+
X-Request-Id:
|
26
|
+
- 1d923b5a2ddd07df6f6d43f8813c4665
|
27
|
+
X-Runtime:
|
28
|
+
- '1.789400'
|
29
|
+
Set-Cookie:
|
30
|
+
- _open-data-certificate_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJWViNzUwZTIxMDMzMjg4MzNmNTZjYjJlZmRkODhkZjVmBjsAVA%3D%3D--5a08b1131355a8c3152372494d71b4e8ddb58120;
|
31
|
+
path=/; HttpOnly
|
32
|
+
Transfer-Encoding:
|
33
|
+
- chunked
|
34
|
+
body:
|
35
|
+
encoding: UTF-8
|
36
|
+
string: "{\"success\":\"pending\",\"dataset_id\":2615,\"dataset_url\":\"<BASE_URI>/datasets/2615.json\"}"
|
37
|
+
http_version:
|
38
|
+
recorded_at: Thu, 18 Sep 2014 13:04:09 GMT
|
39
|
+
recorded_with: VCR 2.9.3
|
data/spec/cassettes/CertificateFactory_Certificate/returns_an_error_if_dataset_already_exists.yml
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: "<BASE_URI>/datasets"
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"jurisdiction":"gb","create_user":true,"dataset":{"documentationUrl":"http://data.gov.uk/dataset/defence-infrastructure-organisation-disposals-database-house-of-commons-report"}}'
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
Authorization:
|
13
|
+
- Basic YXBpQGV4YW1wbGUuY29tOlJhMXY3OFFIRENwYnUxUHEyWENK
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 503
|
17
|
+
message: Service Unavailable
|
18
|
+
headers:
|
19
|
+
Content-Type:
|
20
|
+
- text/html; charset=utf8
|
21
|
+
X-Pow-Template:
|
22
|
+
- application_not_found
|
23
|
+
Date:
|
24
|
+
- Mon, 18 Jul 2<XPC_SERVICE_NAME>16 13:21:<XPC_SERVICE_NAME><XPC_SERVICE_NAME>
|
25
|
+
GMT
|
26
|
+
Connection:
|
27
|
+
- keep-alive
|
28
|
+
Transfer-Encoding:
|
29
|
+
- chunked
|
30
|
+
body:
|
31
|
+
encoding: ASCII-8BIT
|
32
|
+
string: !binary |-
|
33
|
+
PCFkb2N0eXBlIGh0bWw+CjxodG1sPgo8aGVhZD4KICA8bWV0YSBjaGFyc2V0
|
34
|
+
PSJ1dGYtOCI+CiAgPHRpdGxlPkFwcGxpY2F0aW9uIG5vdCBmb3VuZDwvdGl0
|
35
|
+
bGU+CiAgPHN0eWxlPgogICAgYm9keSB7CiAgICAgIG1hcmdpbjogPFhQQ19T
|
36
|
+
RVJWSUNFX05BTUU+OwogICAgICBwYWRkaW5nOiA8WFBDX1NFUlZJQ0VfTkFN
|
37
|
+
RT47CiAgICAgIGJhY2tncm91bmQ6ICNlPFhQQ19TRVJWSUNFX05BTUU+ZTxY
|
38
|
+
UENfU0VSVklDRV9OQU1FPmQ4OwogICAgICBsaW5lLWhlaWdodDogMThweDsK
|
39
|
+
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55
|
+
ICAgIC5iaWcgaDE6YmVmb3JlIHsKICAgICAgcmlnaHQ6IDgxOXB4OwogICAg
|
56
|
+
fQogICAgaDEub2sgewogICAgICBjb2xvcjogIzxYUENfU0VSVklDRV9OQU1F
|
57
|
+
PjY8WFBDX1NFUlZJQ0VfTkFNRT47CiAgICB9CiAgICBoMS5vazpiZWZvcmUg
|
58
|
+
ewogICAgICBjb250ZW50OiAi4pyTIjsKICAgICAgY29sb3I6ICM8WFBDX1NF
|
59
|
+
UlZJQ0VfTkFNRT45PFhQQ19TRVJWSUNFX05BTUU+OwogICAgfQogICAgaDEu
|
60
|
+
ZXJyIHsKICAgICAgY29sb3I6ICM2PFhQQ19TRVJWSUNFX05BTUU+PFhQQ19T
|
61
|
+
RVJWSUNFX05BTUU+OwogICAgfQogICAgaDEuZXJyOmJlZm9yZSB7CiAgICAg
|
62
|
+
IGNvbnRlbnQ6ICLinJciOwogICAgICBjb2xvcjogIzk8WFBDX1NFUlZJQ0Vf
|
63
|
+
TkFNRT48WFBDX1NFUlZJQ0VfTkFNRT47CiAgICB9CiAgICBoMiB7CiAgICAg
|
64
|
+
IGxpbmUtaGVpZ2h0OiAyN3B4OwogICAgICBmb250LXNpemU6IDE4cHg7CiAg
|
65
|
+
ICAgIGZvbnQtd2VpZ2h0OiBub3JtYWw7CiAgICAgIG1hcmdpbjogPFhQQ19T
|
66
|
+
RVJWSUNFX05BTUU+OwogICAgfQogICAgYSwgcHJlIHNwYW4gewogICAgICBj
|
67
|
+
b2xvcjogIzc3NjsKICAgIH0KICAgIGgyLCBwLCBwcmUgewogICAgICBjb2xv
|
68
|
+
cjogIzIyMjsKICAgIH0KICAgIHByZSB7CiAgICAgIHdoaXRlLXNwYWNlOiBw
|
69
|
+
cmUtd3JhcDsKICAgICAgZm9udC1zaXplOiAxM3B4OwogICAgfQogICAgcHJl
|
70
|
+
LCBjb2RlIHsKICAgICAgZm9udC1mYW1pbHk6IE1lbmxvLCBNb25hY28sIG1v
|
71
|
+
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RyYWNrZXI8L2E+PC9saT4KICAgIDwvdWw+CiAgPC9kaXY+CjwvYm9k
|
103
|
+
eT4KPC9odG1sPgoK
|
104
|
+
http_version:
|
105
|
+
recorded_at: Mon, 18 Jul 2016 13:21:00 GMT
|
106
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,726 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api%40example.com:<ODC_API_KEY>@open-data-certificate.dev/datasets/2669.json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Content-Type:
|
11
|
+
- application/json
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Fri, 19 Sep 2014 08:24:51 GMT
|
19
|
+
Content-Type:
|
20
|
+
- application/json; charset=utf-8
|
21
|
+
X-Ua-Compatible:
|
22
|
+
- IE=Edge
|
23
|
+
Etag:
|
24
|
+
- "\"3011530dd86ae18dfc247543902e6b45\""
|
25
|
+
Cache-Control:
|
26
|
+
- max-age=0, private, must-revalidate
|
27
|
+
X-Request-Id:
|
28
|
+
- 7a3f67aee577d476549d8e291a7f1665
|
29
|
+
X-Runtime:
|
30
|
+
- '0.126572'
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: "{\"success\":\"pending\",\"dataset_id\":2669,\"dataset_url\":\"<BASE_URI>/datasets/2669.json\"}"
|
36
|
+
http_version:
|
37
|
+
recorded_at: Fri, 19 Sep 2014 08:24:51 GMT
|
38
|
+
- request:
|
39
|
+
method: get
|
40
|
+
uri: http://api%40example.com:<ODC_API_KEY>@open-data-certificate.dev/datasets/2669.json
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ''
|
44
|
+
headers:
|
45
|
+
Content-Type:
|
46
|
+
- application/json
|
47
|
+
response:
|
48
|
+
status:
|
49
|
+
code: 200
|
50
|
+
message: OK
|
51
|
+
headers:
|
52
|
+
Date:
|
53
|
+
- Fri, 19 Sep 2014 08:24:56 GMT
|
54
|
+
Content-Type:
|
55
|
+
- application/json; charset=utf-8
|
56
|
+
X-Ua-Compatible:
|
57
|
+
- IE=Edge
|
58
|
+
Etag:
|
59
|
+
- "\"3011530dd86ae18dfc247543902e6b45\""
|
60
|
+
Cache-Control:
|
61
|
+
- max-age=0, private, must-revalidate
|
62
|
+
X-Request-Id:
|
63
|
+
- 2ca2dcb79d3714a3bd39f790c228672d
|
64
|
+
X-Runtime:
|
65
|
+
- '0.030819'
|
66
|
+
Transfer-Encoding:
|
67
|
+
- chunked
|
68
|
+
body:
|
69
|
+
encoding: UTF-8
|
70
|
+
string: "{\"success\":\"pending\",\"dataset_id\":2669,\"dataset_url\":\"<BASE_URI>/datasets/2669.json\"}"
|
71
|
+
http_version:
|
72
|
+
recorded_at: Fri, 19 Sep 2014 08:24:56 GMT
|
73
|
+
- request:
|
74
|
+
method: get
|
75
|
+
uri: http://api%40example.com:<ODC_API_KEY>@open-data-certificate.dev/datasets/2669.json
|
76
|
+
body:
|
77
|
+
encoding: US-ASCII
|
78
|
+
string: ''
|
79
|
+
headers:
|
80
|
+
Content-Type:
|
81
|
+
- application/json
|
82
|
+
response:
|
83
|
+
status:
|
84
|
+
code: 200
|
85
|
+
message: OK
|
86
|
+
headers:
|
87
|
+
Date:
|
88
|
+
- Fri, 19 Sep 2014 08:25:01 GMT
|
89
|
+
Content-Type:
|
90
|
+
- application/json; charset=utf-8
|
91
|
+
X-Ua-Compatible:
|
92
|
+
- IE=Edge
|
93
|
+
Etag:
|
94
|
+
- "\"3011530dd86ae18dfc247543902e6b45\""
|
95
|
+
Cache-Control:
|
96
|
+
- max-age=0, private, must-revalidate
|
97
|
+
X-Request-Id:
|
98
|
+
- 1580dd91a3d58d39e245c393118f7d44
|
99
|
+
X-Runtime:
|
100
|
+
- '0.029231'
|
101
|
+
Transfer-Encoding:
|
102
|
+
- chunked
|
103
|
+
body:
|
104
|
+
encoding: UTF-8
|
105
|
+
string: "{\"success\":\"pending\",\"dataset_id\":2669,\"dataset_url\":\"<BASE_URI>/datasets/2669.json\"}"
|
106
|
+
http_version:
|
107
|
+
recorded_at: Fri, 19 Sep 2014 08:25:01 GMT
|
108
|
+
- request:
|
109
|
+
method: get
|
110
|
+
uri: http://api%40example.com:<ODC_API_KEY>@open-data-certificate.dev/datasets/2669.json
|
111
|
+
body:
|
112
|
+
encoding: US-ASCII
|
113
|
+
string: ''
|
114
|
+
headers:
|
115
|
+
Content-Type:
|
116
|
+
- application/json
|
117
|
+
response:
|
118
|
+
status:
|
119
|
+
code: 200
|
120
|
+
message: OK
|
121
|
+
headers:
|
122
|
+
Date:
|
123
|
+
- Fri, 19 Sep 2014 08:25:06 GMT
|
124
|
+
Content-Type:
|
125
|
+
- application/json; charset=utf-8
|
126
|
+
X-Ua-Compatible:
|
127
|
+
- IE=Edge
|
128
|
+
Etag:
|
129
|
+
- "\"3011530dd86ae18dfc247543902e6b45\""
|
130
|
+
Cache-Control:
|
131
|
+
- max-age=0, private, must-revalidate
|
132
|
+
X-Request-Id:
|
133
|
+
- a0efa9abc460103b46ae4ab7b66e4144
|
134
|
+
X-Runtime:
|
135
|
+
- '0.024930'
|
136
|
+
Transfer-Encoding:
|
137
|
+
- chunked
|
138
|
+
body:
|
139
|
+
encoding: UTF-8
|
140
|
+
string: "{\"success\":\"pending\",\"dataset_id\":2669,\"dataset_url\":\"<BASE_URI>/datasets/2669.json\"}"
|
141
|
+
http_version:
|
142
|
+
recorded_at: Fri, 19 Sep 2014 08:25:06 GMT
|
143
|
+
- request:
|
144
|
+
method: get
|
145
|
+
uri: http://api%40example.com:<ODC_API_KEY>@open-data-certificate.dev/datasets/2669.json
|
146
|
+
body:
|
147
|
+
encoding: US-ASCII
|
148
|
+
string: ''
|
149
|
+
headers:
|
150
|
+
Content-Type:
|
151
|
+
- application/json
|
152
|
+
response:
|
153
|
+
status:
|
154
|
+
code: 200
|
155
|
+
message: OK
|
156
|
+
headers:
|
157
|
+
Date:
|
158
|
+
- Fri, 19 Sep 2014 08:25:11 GMT
|
159
|
+
Content-Type:
|
160
|
+
- application/json; charset=utf-8
|
161
|
+
X-Ua-Compatible:
|
162
|
+
- IE=Edge
|
163
|
+
Etag:
|
164
|
+
- "\"16612a68ca5f3195cd4e96324e8c73bc\""
|
165
|
+
Cache-Control:
|
166
|
+
- max-age=0, private, must-revalidate
|
167
|
+
X-Request-Id:
|
168
|
+
- d8dd56b6cc164b2c96657251f0adc218
|
169
|
+
X-Runtime:
|
170
|
+
- '0.121507'
|
171
|
+
Transfer-Encoding:
|
172
|
+
- chunked
|
173
|
+
body:
|
174
|
+
encoding: UTF-8
|
175
|
+
string: "{\"success\":true,\"dataset_id\":2669,\"published\":true,\"owner_email\":\"<ODC_USERNAME>\",\"errors\":[\"The
|
176
|
+
question 'webpage' is mandatory\",\"The question 'thirdPartyOrigin' is mandatory\",\"The
|
177
|
+
question 'thirdPartyOpen' is mandatory\",\"The question 'reference' is mandatory\",\"The
|
178
|
+
question 'currentDatasetUrl' is mandatory\",\"The question 'versionsTemplateUrl'
|
179
|
+
is mandatory\",\"The question 'crowdsourced' is mandatory\",\"The question
|
180
|
+
'serviceType' is mandatory\",\"The question 'crowdsourcedContent' is mandatory\",\"The
|
181
|
+
question 'claUrl' is mandatory\",\"The question 'cldsRecorded' is mandatory\",\"The
|
182
|
+
question 'seriesType' is mandatory\",\"The question 'currentDumpUrl' is mandatory\",\"The
|
183
|
+
question 'dumpsTemplateUrl' is mandatory\",\"The question 'dumpsUrl' is mandatory\",\"The
|
184
|
+
question 'changeFeedUrl' is mandatory\",\"The question 'dataNotApplicable'
|
185
|
+
is mandatory\",\"The question 'dataWaiver' is mandatory\",\"The question 'dataOtherWaiver'
|
186
|
+
is mandatory\",\"The question 'otherDataLicenceName' is mandatory\",\"The
|
187
|
+
question 'otherDataLicenceURL' is mandatory\",\"The question 'otherDataLicenceOpen'
|
188
|
+
is mandatory\",\"The question 'contentNotApplicable' is mandatory\",\"The
|
189
|
+
question 'contentWaiver' is mandatory\",\"The question 'contentOtherWaiver'
|
190
|
+
is mandatory\",\"The question 'account' is mandatory\",\"The question 'otherContentLicenceName'
|
191
|
+
is mandatory\",\"The question 'otherContentLicenceURL' is mandatory\",\"The
|
192
|
+
question 'otherContentLicenceOpen' is mandatory\",\"The question 'contentRightsURL'
|
193
|
+
is mandatory\",\"The question 'engagementTeamUrl' is mandatory\",\"The question
|
194
|
+
'existingExternalUrls' is mandatory\",\"The question 'reliableExternalUrls'
|
195
|
+
is mandatory\",\"The question 'appliedAnon' is mandatory\",\"The question
|
196
|
+
'dpStaff' is mandatory\"]}"
|
197
|
+
http_version:
|
198
|
+
recorded_at: Fri, 19 Sep 2014 08:25:11 GMT
|
199
|
+
- request:
|
200
|
+
method: get
|
201
|
+
uri: http://data.gov.uk/api/2/rest/package/cambridgeshire-county-council-management-band-pay-scales
|
202
|
+
body:
|
203
|
+
encoding: US-ASCII
|
204
|
+
string: ''
|
205
|
+
headers: {}
|
206
|
+
response:
|
207
|
+
status:
|
208
|
+
code: 200
|
209
|
+
message: OK
|
210
|
+
headers:
|
211
|
+
Server:
|
212
|
+
- nginx/1.6.0
|
213
|
+
Date:
|
214
|
+
- Fri, 19 Sep 2014 10:47:30 GMT
|
215
|
+
Content-Type:
|
216
|
+
- application/json;charset=utf-8
|
217
|
+
Content-Length:
|
218
|
+
- '2770'
|
219
|
+
Connection:
|
220
|
+
- keep-alive
|
221
|
+
Vary:
|
222
|
+
- Accept-Encoding
|
223
|
+
- Cookie
|
224
|
+
Pragma:
|
225
|
+
- no-cache
|
226
|
+
Cache-Control:
|
227
|
+
- no-cache
|
228
|
+
Access-Control-Allow-Origin:
|
229
|
+
- "*"
|
230
|
+
Access-Control-Allow-Methods:
|
231
|
+
- POST, PUT, GET, DELETE, OPTIONS
|
232
|
+
Access-Control-Allow-Headers:
|
233
|
+
- X-CKAN-API-KEY, Authorization, Content-Type
|
234
|
+
Accept-Ranges:
|
235
|
+
- bytes
|
236
|
+
X-Varnish:
|
237
|
+
- '2133420252'
|
238
|
+
Age:
|
239
|
+
- '0'
|
240
|
+
Via:
|
241
|
+
- 1.1 varnish
|
242
|
+
X-App:
|
243
|
+
- ckan
|
244
|
+
X-Varnish-Cache:
|
245
|
+
- MISS
|
246
|
+
body:
|
247
|
+
encoding: UTF-8
|
248
|
+
string: "{\"license_title\": \"UK Open Government Licence (OGL)\", \"maintainer\":
|
249
|
+
null, \"private\": false, \"maintainer_email\": null, \"id\": \"4820b7ee-e960-4d65-9bbd-bf05fdd5dd26\",
|
250
|
+
\"metadata_created\": \"2014-09-11T08:45:05.302023\", \"relationships\": [],
|
251
|
+
\"license\": \"UK Open Government Licence (OGL)\", \"metadata_modified\":
|
252
|
+
\"2014-09-11T08:45:05.313103\", \"author\": null, \"author_email\": null,
|
253
|
+
\"state\": \"active\", \"version\": null, \"creator_user_id\": \"edec0bc8-46b1-4266-94e0-77257e6ee87e\",
|
254
|
+
\"type\": \"dataset\", \"resources\": [{\"resource_group_id\": \"dd82640b-e02d-4921-9258-fb711bc5153c\",
|
255
|
+
\"cache_last_updated\": null, \"package_id\": \"4820b7ee-e960-4d65-9bbd-bf05fdd5dd26\",
|
256
|
+
\"webstore_last_updated\": null, \"id\": \"ae142d42-3456-4132-996b-df5c99bbf836\",
|
257
|
+
\"size\": null, \"last_modified\": null, \"hash\": \"\", \"description\":
|
258
|
+
\"Cambridgeshire County Council Management Band pay scales 2014\", \"format\":
|
259
|
+
\"CSV\", \"mimetype_inner\": null, \"url_type\": null, \"date\": \"2014-04-01\",
|
260
|
+
\"mimetype\": null, \"cache_url\": null, \"name\": null, \"created\": \"2014-09-11T09:45:05.351967\",
|
261
|
+
\"url\": \"http://www.cambridgeshire.gov.uk/download/downloads/id/3110/management_band_payscales.csv\",
|
262
|
+
\"webstore_url\": null, \"position\": 0, \"resource_type\": \"file\"}], \"num_resources\":
|
263
|
+
1, \"tags\": [], \"groups\": [], \"license_id\": \"uk-ogl\", \"num_tags\":
|
264
|
+
0, \"organization\": {\"description\": \"\", \"title\": \"Cambridgeshire County
|
265
|
+
Council\", \"created\": \"2012-06-27T14:49:31.613796\", \"approval_status\":
|
266
|
+
\"pending\", \"revision_timestamp\": \"2014-07-22T11:35:00.168201\", \"is_organization\":
|
267
|
+
true, \"state\": \"active\", \"image_url\": \"\", \"revision_id\": \"85796520-5663-4477-b49a-b4d4c3514ce7\",
|
268
|
+
\"type\": \"organization\", \"id\": \"d0149ce5-e526-4c09-8230-c8cc6a687f6a\",
|
269
|
+
\"name\": \"cambridgeshire-county-council\"}, \"name\": \"cambridgeshire-county-council-management-band-pay-scales\",
|
270
|
+
\"isopen\": true, \"notes_rendered\": \"<p>This dataset contains the pay scale
|
271
|
+
for Management Band roles within Cambridgeshire County Council.\\n</p>\",
|
272
|
+
\"url\": null, \"ckan_url\": \"http://data.gov.uk/dataset/cambridgeshire-county-council-management-band-pay-scales\",
|
273
|
+
\"notes\": \"This dataset contains the pay scale for Management Band roles
|
274
|
+
within Cambridgeshire County Council.\", \"owner_org\": \"d0149ce5-e526-4c09-8230-c8cc6a687f6a\",
|
275
|
+
\"ratings_average\": null, \"extras\": {\"contact-name\": \"\", \"temporal_coverage-from\":
|
276
|
+
\"\", \"contact-email\": \"\", \"foi-web\": \"\", \"foi-name\": \"\", \"temporal_coverage-to\":
|
277
|
+
\"\", \"foi-email\": \"\", \"contact-phone\": \"\", \"mandate\": \"\", \"date\":
|
278
|
+
\"01/04/2014\", \"update_frequency\": \"annual\", \"foi-phone\": \"\", \"unpublished\":
|
279
|
+
\"false\", \"theme-primary\": \"Government\"}, \"license_url\": \"http://www.nationalarchives.gov.uk/doc/open-government-licence/version/2/\",
|
280
|
+
\"ratings_count\": 0, \"title\": \"Cambridgeshire County Council Management
|
281
|
+
Band pay scales\", \"revision_id\": \"2cdcc85e-1f97-4520-a453-dede54ab81e2\"}"
|
282
|
+
http_version:
|
283
|
+
recorded_at: Fri, 19 Sep 2014 10:47:33 GMT
|
284
|
+
- request:
|
285
|
+
method: post
|
286
|
+
uri: http://api%40example.com:<ODC_API_KEY>@open-data-certificate.dev/datasets
|
287
|
+
body:
|
288
|
+
encoding: UTF-8
|
289
|
+
string: "{\"jurisdiction\":\"gb\",\"create_user\":\"true\",\"dataset\":{\"documentationUrl\":\"http://data.gov.uk/dataset/cambridgeshire-county-council-management-band-pay-scales\"}}"
|
290
|
+
headers:
|
291
|
+
Content-Type:
|
292
|
+
- application/json
|
293
|
+
response:
|
294
|
+
status:
|
295
|
+
code: 202
|
296
|
+
message: Accepted
|
297
|
+
headers:
|
298
|
+
Date:
|
299
|
+
- Fri, 19 Sep 2014 10:47:36 GMT
|
300
|
+
Content-Type:
|
301
|
+
- application/json; charset=utf-8
|
302
|
+
X-Ua-Compatible:
|
303
|
+
- IE=Edge
|
304
|
+
Cache-Control:
|
305
|
+
- no-cache
|
306
|
+
X-Request-Id:
|
307
|
+
- 13293340120e0ee19aac157272a20baa
|
308
|
+
X-Runtime:
|
309
|
+
- '2.239449'
|
310
|
+
Set-Cookie:
|
311
|
+
- _open-data-certificate_session=BAh7BkkiD3Nlc3Npb25faWQGOgZFRkkiJTMxZDk5ZTY1NTc3MWVhZjIzMmZmZGY5YzNmMzJjMjJkBjsAVA%3D%3D--1a25cb30558a921014325124ba1d9407ddc1ea4d;
|
312
|
+
path=/; HttpOnly
|
313
|
+
Transfer-Encoding:
|
314
|
+
- chunked
|
315
|
+
body:
|
316
|
+
encoding: UTF-8
|
317
|
+
string: "{\"success\":\"pending\",\"dataset_id\":2616,\"dataset_url\":\"<BASE_URI>/datasets/2616.json\"}"
|
318
|
+
http_version:
|
319
|
+
recorded_at: Fri, 19 Sep 2014 10:47:36 GMT
|
320
|
+
- request:
|
321
|
+
method: get
|
322
|
+
uri: http://api%40example.com:<ODC_API_KEY>@open-data-certificate.dev/datasets/2616.json
|
323
|
+
body:
|
324
|
+
encoding: US-ASCII
|
325
|
+
string: ''
|
326
|
+
headers:
|
327
|
+
Content-Type:
|
328
|
+
- application/json
|
329
|
+
response:
|
330
|
+
status:
|
331
|
+
code: 200
|
332
|
+
message: OK
|
333
|
+
headers:
|
334
|
+
Date:
|
335
|
+
- Fri, 19 Sep 2014 10:47:36 GMT
|
336
|
+
Content-Type:
|
337
|
+
- application/json; charset=utf-8
|
338
|
+
X-Ua-Compatible:
|
339
|
+
- IE=Edge
|
340
|
+
Etag:
|
341
|
+
- "\"9a04aa3e8e477e37aa5052dee221e78b\""
|
342
|
+
Cache-Control:
|
343
|
+
- max-age=0, private, must-revalidate
|
344
|
+
X-Request-Id:
|
345
|
+
- d7aca8332cf149610b714b3f3d05ed85
|
346
|
+
X-Runtime:
|
347
|
+
- '0.025854'
|
348
|
+
Transfer-Encoding:
|
349
|
+
- chunked
|
350
|
+
body:
|
351
|
+
encoding: UTF-8
|
352
|
+
string: "{\"success\":\"pending\",\"dataset_id\":2616,\"dataset_url\":\"<BASE_URI>/datasets/2616.json\"}"
|
353
|
+
http_version:
|
354
|
+
recorded_at: Fri, 19 Sep 2014 10:47:36 GMT
|
355
|
+
- request:
|
356
|
+
method: get
|
357
|
+
uri: http://api%40example.com:<ODC_API_KEY>@open-data-certificate.dev/datasets/2616.json
|
358
|
+
body:
|
359
|
+
encoding: US-ASCII
|
360
|
+
string: ''
|
361
|
+
headers:
|
362
|
+
Content-Type:
|
363
|
+
- application/json
|
364
|
+
response:
|
365
|
+
status:
|
366
|
+
code: 200
|
367
|
+
message: OK
|
368
|
+
headers:
|
369
|
+
Date:
|
370
|
+
- Fri, 19 Sep 2014 10:47:41 GMT
|
371
|
+
Content-Type:
|
372
|
+
- application/json; charset=utf-8
|
373
|
+
X-Ua-Compatible:
|
374
|
+
- IE=Edge
|
375
|
+
Etag:
|
376
|
+
- "\"9a04aa3e8e477e37aa5052dee221e78b\""
|
377
|
+
Cache-Control:
|
378
|
+
- max-age=0, private, must-revalidate
|
379
|
+
X-Request-Id:
|
380
|
+
- 3a0a709de30c1218a2e33f5e14ce36ed
|
381
|
+
X-Runtime:
|
382
|
+
- '0.032791'
|
383
|
+
Transfer-Encoding:
|
384
|
+
- chunked
|
385
|
+
body:
|
386
|
+
encoding: UTF-8
|
387
|
+
string: "{\"success\":\"pending\",\"dataset_id\":2616,\"dataset_url\":\"<BASE_URI>/datasets/2616.json\"}"
|
388
|
+
http_version:
|
389
|
+
recorded_at: Fri, 19 Sep 2014 10:47:41 GMT
|
390
|
+
- request:
|
391
|
+
method: get
|
392
|
+
uri: http://api%40example.com:<ODC_API_KEY>@open-data-certificate.dev/datasets/2616.json
|
393
|
+
body:
|
394
|
+
encoding: US-ASCII
|
395
|
+
string: ''
|
396
|
+
headers:
|
397
|
+
Content-Type:
|
398
|
+
- application/json
|
399
|
+
response:
|
400
|
+
status:
|
401
|
+
code: 200
|
402
|
+
message: OK
|
403
|
+
headers:
|
404
|
+
Date:
|
405
|
+
- Fri, 19 Sep 2014 10:47:46 GMT
|
406
|
+
Content-Type:
|
407
|
+
- application/json; charset=utf-8
|
408
|
+
X-Ua-Compatible:
|
409
|
+
- IE=Edge
|
410
|
+
Etag:
|
411
|
+
- "\"9a04aa3e8e477e37aa5052dee221e78b\""
|
412
|
+
Cache-Control:
|
413
|
+
- max-age=0, private, must-revalidate
|
414
|
+
X-Request-Id:
|
415
|
+
- e8cdbdcbce4075f54bb24dfd0ed9509a
|
416
|
+
X-Runtime:
|
417
|
+
- '0.030528'
|
418
|
+
Transfer-Encoding:
|
419
|
+
- chunked
|
420
|
+
body:
|
421
|
+
encoding: UTF-8
|
422
|
+
string: "{\"success\":\"pending\",\"dataset_id\":2616,\"dataset_url\":\"<BASE_URI>/datasets/2616.json\"}"
|
423
|
+
http_version:
|
424
|
+
recorded_at: Fri, 19 Sep 2014 10:47:46 GMT
|
425
|
+
- request:
|
426
|
+
method: get
|
427
|
+
uri: http://api%40example.com:<ODC_API_KEY>@open-data-certificate.dev/datasets/2616.json
|
428
|
+
body:
|
429
|
+
encoding: US-ASCII
|
430
|
+
string: ''
|
431
|
+
headers:
|
432
|
+
Content-Type:
|
433
|
+
- application/json
|
434
|
+
response:
|
435
|
+
status:
|
436
|
+
code: 200
|
437
|
+
message: OK
|
438
|
+
headers:
|
439
|
+
Date:
|
440
|
+
- Fri, 19 Sep 2014 10:47:51 GMT
|
441
|
+
Content-Type:
|
442
|
+
- application/json; charset=utf-8
|
443
|
+
X-Ua-Compatible:
|
444
|
+
- IE=Edge
|
445
|
+
Etag:
|
446
|
+
- "\"9a04aa3e8e477e37aa5052dee221e78b\""
|
447
|
+
Cache-Control:
|
448
|
+
- max-age=0, private, must-revalidate
|
449
|
+
X-Request-Id:
|
450
|
+
- 7354deeae5ed6db243442c830e596e0c
|
451
|
+
X-Runtime:
|
452
|
+
- '0.034075'
|
453
|
+
Transfer-Encoding:
|
454
|
+
- chunked
|
455
|
+
body:
|
456
|
+
encoding: UTF-8
|
457
|
+
string: "{\"success\":\"pending\",\"dataset_id\":2616,\"dataset_url\":\"<BASE_URI>/datasets/2616.json\"}"
|
458
|
+
http_version:
|
459
|
+
recorded_at: Fri, 19 Sep 2014 10:47:51 GMT
|
460
|
+
- request:
|
461
|
+
method: get
|
462
|
+
uri: http://api%40example.com:<ODC_API_KEY>@open-data-certificate.dev/datasets/2616.json
|
463
|
+
body:
|
464
|
+
encoding: US-ASCII
|
465
|
+
string: ''
|
466
|
+
headers:
|
467
|
+
Content-Type:
|
468
|
+
- application/json
|
469
|
+
response:
|
470
|
+
status:
|
471
|
+
code: 200
|
472
|
+
message: OK
|
473
|
+
headers:
|
474
|
+
Date:
|
475
|
+
- Fri, 19 Sep 2014 10:47:56 GMT
|
476
|
+
Content-Type:
|
477
|
+
- application/json; charset=utf-8
|
478
|
+
X-Ua-Compatible:
|
479
|
+
- IE=Edge
|
480
|
+
Etag:
|
481
|
+
- "\"9a04aa3e8e477e37aa5052dee221e78b\""
|
482
|
+
Cache-Control:
|
483
|
+
- max-age=0, private, must-revalidate
|
484
|
+
X-Request-Id:
|
485
|
+
- 2fd2b1f55854931d4b9af301129c63dc
|
486
|
+
X-Runtime:
|
487
|
+
- '0.159235'
|
488
|
+
Transfer-Encoding:
|
489
|
+
- chunked
|
490
|
+
body:
|
491
|
+
encoding: UTF-8
|
492
|
+
string: "{\"success\":\"pending\",\"dataset_id\":2616,\"dataset_url\":\"<BASE_URI>/datasets/2616.json\"}"
|
493
|
+
http_version:
|
494
|
+
recorded_at: Fri, 19 Sep 2014 10:47:56 GMT
|
495
|
+
- request:
|
496
|
+
method: get
|
497
|
+
uri: http://api%40example.com:<ODC_API_KEY>@open-data-certificate.dev/datasets/2616.json
|
498
|
+
body:
|
499
|
+
encoding: US-ASCII
|
500
|
+
string: ''
|
501
|
+
headers:
|
502
|
+
Content-Type:
|
503
|
+
- application/json
|
504
|
+
response:
|
505
|
+
status:
|
506
|
+
code: 200
|
507
|
+
message: OK
|
508
|
+
headers:
|
509
|
+
Date:
|
510
|
+
- Fri, 19 Sep 2014 10:48:01 GMT
|
511
|
+
Content-Type:
|
512
|
+
- application/json; charset=utf-8
|
513
|
+
X-Ua-Compatible:
|
514
|
+
- IE=Edge
|
515
|
+
Etag:
|
516
|
+
- "\"9a04aa3e8e477e37aa5052dee221e78b\""
|
517
|
+
Cache-Control:
|
518
|
+
- max-age=0, private, must-revalidate
|
519
|
+
X-Request-Id:
|
520
|
+
- 54569e7096fb9914e2052d0fa0ea52e6
|
521
|
+
X-Runtime:
|
522
|
+
- '0.026219'
|
523
|
+
Transfer-Encoding:
|
524
|
+
- chunked
|
525
|
+
body:
|
526
|
+
encoding: UTF-8
|
527
|
+
string: "{\"success\":\"pending\",\"dataset_id\":2616,\"dataset_url\":\"<BASE_URI>/datasets/2616.json\"}"
|
528
|
+
http_version:
|
529
|
+
recorded_at: Fri, 19 Sep 2014 10:48:01 GMT
|
530
|
+
- request:
|
531
|
+
method: get
|
532
|
+
uri: http://api%40example.com:<ODC_API_KEY>@open-data-certificate.dev/datasets/2616.json
|
533
|
+
body:
|
534
|
+
encoding: US-ASCII
|
535
|
+
string: ''
|
536
|
+
headers:
|
537
|
+
Content-Type:
|
538
|
+
- application/json
|
539
|
+
response:
|
540
|
+
status:
|
541
|
+
code: 200
|
542
|
+
message: OK
|
543
|
+
headers:
|
544
|
+
Date:
|
545
|
+
- Fri, 19 Sep 2014 10:48:07 GMT
|
546
|
+
Content-Type:
|
547
|
+
- application/json; charset=utf-8
|
548
|
+
X-Ua-Compatible:
|
549
|
+
- IE=Edge
|
550
|
+
Etag:
|
551
|
+
- "\"9a04aa3e8e477e37aa5052dee221e78b\""
|
552
|
+
Cache-Control:
|
553
|
+
- max-age=0, private, must-revalidate
|
554
|
+
X-Request-Id:
|
555
|
+
- e05d3393d4c1d055408f96290e105424
|
556
|
+
X-Runtime:
|
557
|
+
- '0.029702'
|
558
|
+
Transfer-Encoding:
|
559
|
+
- chunked
|
560
|
+
body:
|
561
|
+
encoding: UTF-8
|
562
|
+
string: "{\"success\":\"pending\",\"dataset_id\":2616,\"dataset_url\":\"<BASE_URI>/datasets/2616.json\"}"
|
563
|
+
http_version:
|
564
|
+
recorded_at: Fri, 19 Sep 2014 10:48:07 GMT
|
565
|
+
- request:
|
566
|
+
method: get
|
567
|
+
uri: http://api%40example.com:<ODC_API_KEY>@open-data-certificate.dev/datasets/2616.json
|
568
|
+
body:
|
569
|
+
encoding: US-ASCII
|
570
|
+
string: ''
|
571
|
+
headers:
|
572
|
+
Content-Type:
|
573
|
+
- application/json
|
574
|
+
response:
|
575
|
+
status:
|
576
|
+
code: 200
|
577
|
+
message: OK
|
578
|
+
headers:
|
579
|
+
Date:
|
580
|
+
- Fri, 19 Sep 2014 10:48:12 GMT
|
581
|
+
Content-Type:
|
582
|
+
- application/json; charset=utf-8
|
583
|
+
X-Ua-Compatible:
|
584
|
+
- IE=Edge
|
585
|
+
Etag:
|
586
|
+
- "\"9a04aa3e8e477e37aa5052dee221e78b\""
|
587
|
+
Cache-Control:
|
588
|
+
- max-age=0, private, must-revalidate
|
589
|
+
X-Request-Id:
|
590
|
+
- f72b00b50dde960f068e8ed058948c77
|
591
|
+
X-Runtime:
|
592
|
+
- '0.025563'
|
593
|
+
Transfer-Encoding:
|
594
|
+
- chunked
|
595
|
+
body:
|
596
|
+
encoding: UTF-8
|
597
|
+
string: "{\"success\":\"pending\",\"dataset_id\":2616,\"dataset_url\":\"<BASE_URI>/datasets/2616.json\"}"
|
598
|
+
http_version:
|
599
|
+
recorded_at: Fri, 19 Sep 2014 10:48:12 GMT
|
600
|
+
- request:
|
601
|
+
method: get
|
602
|
+
uri: http://api%40example.com:<ODC_API_KEY>@open-data-certificate.dev/datasets/2616.json
|
603
|
+
body:
|
604
|
+
encoding: US-ASCII
|
605
|
+
string: ''
|
606
|
+
headers:
|
607
|
+
Content-Type:
|
608
|
+
- application/json
|
609
|
+
response:
|
610
|
+
status:
|
611
|
+
code: 200
|
612
|
+
message: OK
|
613
|
+
headers:
|
614
|
+
Date:
|
615
|
+
- Fri, 19 Sep 2014 10:48:17 GMT
|
616
|
+
Content-Type:
|
617
|
+
- application/json; charset=utf-8
|
618
|
+
X-Ua-Compatible:
|
619
|
+
- IE=Edge
|
620
|
+
Etag:
|
621
|
+
- "\"9a04aa3e8e477e37aa5052dee221e78b\""
|
622
|
+
Cache-Control:
|
623
|
+
- max-age=0, private, must-revalidate
|
624
|
+
X-Request-Id:
|
625
|
+
- 683934f0394a10920457147a8d32c21f
|
626
|
+
X-Runtime:
|
627
|
+
- '0.031564'
|
628
|
+
Transfer-Encoding:
|
629
|
+
- chunked
|
630
|
+
body:
|
631
|
+
encoding: UTF-8
|
632
|
+
string: "{\"success\":\"pending\",\"dataset_id\":2616,\"dataset_url\":\"<BASE_URI>/datasets/2616.json\"}"
|
633
|
+
http_version:
|
634
|
+
recorded_at: Fri, 19 Sep 2014 10:48:17 GMT
|
635
|
+
- request:
|
636
|
+
method: get
|
637
|
+
uri: http://api%40example.com:<ODC_API_KEY>@open-data-certificate.dev/datasets/2616.json
|
638
|
+
body:
|
639
|
+
encoding: US-ASCII
|
640
|
+
string: ''
|
641
|
+
headers:
|
642
|
+
Content-Type:
|
643
|
+
- application/json
|
644
|
+
response:
|
645
|
+
status:
|
646
|
+
code: 200
|
647
|
+
message: OK
|
648
|
+
headers:
|
649
|
+
Date:
|
650
|
+
- Fri, 19 Sep 2014 10:48:22 GMT
|
651
|
+
Content-Type:
|
652
|
+
- application/json; charset=utf-8
|
653
|
+
X-Ua-Compatible:
|
654
|
+
- IE=Edge
|
655
|
+
Etag:
|
656
|
+
- "\"9a04aa3e8e477e37aa5052dee221e78b\""
|
657
|
+
Cache-Control:
|
658
|
+
- max-age=0, private, must-revalidate
|
659
|
+
X-Request-Id:
|
660
|
+
- 36f316f4df6216f968f808442f0f63d6
|
661
|
+
X-Runtime:
|
662
|
+
- '0.033824'
|
663
|
+
Transfer-Encoding:
|
664
|
+
- chunked
|
665
|
+
body:
|
666
|
+
encoding: UTF-8
|
667
|
+
string: "{\"success\":\"pending\",\"dataset_id\":2616,\"dataset_url\":\"<BASE_URI>/datasets/2616.json\"}"
|
668
|
+
http_version:
|
669
|
+
recorded_at: Fri, 19 Sep 2014 10:48:22 GMT
|
670
|
+
- request:
|
671
|
+
method: get
|
672
|
+
uri: http://api%40example.com:<ODC_API_KEY>@open-data-certificate.dev/datasets/2616.json
|
673
|
+
body:
|
674
|
+
encoding: US-ASCII
|
675
|
+
string: ''
|
676
|
+
headers:
|
677
|
+
Content-Type:
|
678
|
+
- application/json
|
679
|
+
response:
|
680
|
+
status:
|
681
|
+
code: 200
|
682
|
+
message: OK
|
683
|
+
headers:
|
684
|
+
Date:
|
685
|
+
- Fri, 19 Sep 2014 10:48:27 GMT
|
686
|
+
Content-Type:
|
687
|
+
- application/json; charset=utf-8
|
688
|
+
X-Ua-Compatible:
|
689
|
+
- IE=Edge
|
690
|
+
Etag:
|
691
|
+
- "\"d15ab82296621447d376a281e295df7a\""
|
692
|
+
Cache-Control:
|
693
|
+
- max-age=0, private, must-revalidate
|
694
|
+
X-Request-Id:
|
695
|
+
- 7cb87b234b47c62b0cda26fc20141c72
|
696
|
+
X-Runtime:
|
697
|
+
- '0.101034'
|
698
|
+
Transfer-Encoding:
|
699
|
+
- chunked
|
700
|
+
body:
|
701
|
+
encoding: UTF-8
|
702
|
+
string: "{\"success\":true,\"dataset_id\":2616,\"certificate_url\":\"<BASE_URI>/datasets/2616/certificates/14991\",\"published\":true,\"owner_email\":\"<ODC_USERNAME>\",\"errors\":[\"The
|
703
|
+
question 'webpage' is mandatory\",\"The question 'thirdPartyOrigin' is mandatory\",\"The
|
704
|
+
question 'thirdPartyOpen' is mandatory\",\"The question 'reference' is mandatory\",\"The
|
705
|
+
question 'currentDatasetUrl' is mandatory\",\"The question 'versionsTemplateUrl'
|
706
|
+
is mandatory\",\"The question 'crowdsourced' is mandatory\",\"The question
|
707
|
+
'serviceType' is mandatory\",\"The question 'crowdsourcedContent' is mandatory\",\"The
|
708
|
+
question 'claUrl' is mandatory\",\"The question 'cldsRecorded' is mandatory\",\"The
|
709
|
+
question 'seriesType' is mandatory\",\"The question 'currentDumpUrl' is mandatory\",\"The
|
710
|
+
question 'dumpsTemplateUrl' is mandatory\",\"The question 'dumpsUrl' is mandatory\",\"The
|
711
|
+
question 'changeFeedUrl' is mandatory\",\"The question 'dataNotApplicable'
|
712
|
+
is mandatory\",\"The question 'dataWaiver' is mandatory\",\"The question 'dataOtherWaiver'
|
713
|
+
is mandatory\",\"The question 'otherDataLicenceName' is mandatory\",\"The
|
714
|
+
question 'otherDataLicenceURL' is mandatory\",\"The question 'otherDataLicenceOpen'
|
715
|
+
is mandatory\",\"The question 'contentNotApplicable' is mandatory\",\"The
|
716
|
+
question 'contentWaiver' is mandatory\",\"The question 'contentOtherWaiver'
|
717
|
+
is mandatory\",\"The question 'account' is mandatory\",\"The question 'otherContentLicenceName'
|
718
|
+
is mandatory\",\"The question 'otherContentLicenceURL' is mandatory\",\"The
|
719
|
+
question 'otherContentLicenceOpen' is mandatory\",\"The question 'contentRightsURL'
|
720
|
+
is mandatory\",\"The question 'engagementTeamUrl' is mandatory\",\"The question
|
721
|
+
'existingExternalUrls' is mandatory\",\"The question 'reliableExternalUrls'
|
722
|
+
is mandatory\",\"The question 'appliedAnon' is mandatory\",\"The question
|
723
|
+
'dpStaff' is mandatory\"]}"
|
724
|
+
http_version:
|
725
|
+
recorded_at: Fri, 19 Sep 2014 10:48:27 GMT
|
726
|
+
recorded_with: VCR 2.9.3
|