toccatore 0.2.3 → 0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +6 -3
  3. data/Gemfile.lock +11 -12
  4. data/README.md +1 -1
  5. data/lib/toccatore.rb +2 -0
  6. data/lib/toccatore/base.rb +26 -184
  7. data/lib/toccatore/cli.rb +13 -1
  8. data/lib/toccatore/datacite_related.rb +77 -0
  9. data/lib/toccatore/version.rb +1 -1
  10. data/spec/base_spec.rb +49 -0
  11. data/spec/cli_spec.rb +58 -11
  12. data/spec/datacite_related_spec.rb +129 -0
  13. data/spec/fixtures/datacite_related.json +14792 -0
  14. data/spec/fixtures/datacite_related_nil.json +12 -0
  15. data/spec/fixtures/orcid_update_is_previous.json +24 -1
  16. data/spec/fixtures/vcr_cassettes/Toccatore_Base/get_doi_ra/crossref.yml +72 -0
  17. data/spec/fixtures/vcr_cassettes/Toccatore_Base/get_doi_ra/datacite.yml +74 -0
  18. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_fail.yml +1408 -0
  19. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_query_by_DOI.yml +1145 -0
  20. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_query_by_related_identifier.yml +252 -0
  21. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_succeed.yml +6348 -0
  22. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_succeed_with_no_works.yml +38 -0
  23. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_delete.yml +47 -49
  24. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_fail.yml +21 -132
  25. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_query_by_DOI.yml +731 -1016
  26. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_query_by_ORCID_ID.yml +1880 -1889
  27. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_succeed.yml +1576 -1591
  28. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_succeed_with_no_works.yml +11 -11
  29. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/get_data/should_allow_queries_by_DOI_of_the_Datacite_Metadata_Search_API.yml +38 -0
  30. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/get_data/should_allow_queries_by_related_identifier_of_the_Datacite_Metadata_Search_API.yml +38 -0
  31. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/get_data/should_report_if_there_are_no_works_returned_by_the_Datacite_Metadata_Search_API.yml +38 -0
  32. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/get_data/should_report_if_there_are_works_returned_by_the_Datacite_Metadata_Search_API.yml +40 -0
  33. data/spec/fixtures/vcr_cassettes/{Toccatore_OrcidUpdate/get_data/should_catch_errors_with_the_Datacite_Metadata_Search_API.yml → Toccatore_DataciteRelated/get_total/with_no_works.yml} +10 -10
  34. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/get_total/with_works.yml +38 -0
  35. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/parse_data/should_report_if_there_are_works_returned_by_the_Datacite_Metadata_Search_API.yml +1326 -0
  36. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/push_data/should_report_if_there_are_works_returned_by_the_Datacite_Metadata_Search_API.yml +6274 -0
  37. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/get_data/should_allow_queries_by_DOI_of_the_Datacite_Metadata_Search_API.yml +13 -458
  38. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/get_data/should_allow_queries_by_ORCID_ID_of_the_Datacite_Metadata_Search_API.yml +10 -143
  39. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/get_data/should_report_if_there_are_no_works_returned_by_the_Datacite_Metadata_Search_API.yml +9 -9
  40. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/get_data/should_report_if_there_are_works_returned_by_the_Datacite_Metadata_Search_API.yml +10 -121
  41. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/get_total/with_no_works.yml +10 -10
  42. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/get_total/with_works.yml +10 -10
  43. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/push_data/should_delete_claims.yml +27 -25
  44. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/push_data/should_report_if_there_are_works_returned_by_the_Datacite_Metadata_Search_API.yml +1506 -1404
  45. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/queue_jobs/should_report_if_there_are_no_works_returned_by_the_Datacite_Metadata_Search_API.yml +9 -9
  46. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/queue_jobs/should_report_if_there_are_works_returned_by_the_Datacite_Metadata_Search_API.yml +21 -182
  47. data/spec/orcid_update_spec.rb +8 -14
  48. data/spec/spec_helper.rb +1 -0
  49. data/toccatore.gemspec +1 -1
  50. metadata +24 -5
@@ -0,0 +1,1145 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://search.datacite.org/api?fl=doi,resourceTypeGeneral,relatedIdentifier,nameIdentifier,minted,updated&fq=updated:%5B2013-01-01T00:00:00Z%20TO%202017-12-31T23:59:59Z%5D%20AND%20has_metadata:true%20AND%20is_active:true&q=doi:10.5438/CT8B-X1CE&rows=0&start=0&wt=json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Maremma - https://github.com/datacite/maremma
12
+ Accept:
13
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: ''
18
+ headers:
19
+ Access-Control-Allow-Methods:
20
+ - GET, POST, OPTIONS
21
+ Access-Control-Allow-Origin:
22
+ - "*"
23
+ Content-Type:
24
+ - application/json;charset=UTF-8
25
+ Date:
26
+ - Sat, 11 Mar 2017 10:53:10 GMT
27
+ Server:
28
+ - openresty/1.11.2.2
29
+ Connection:
30
+ - keep-alive
31
+ body:
32
+ encoding: UTF-8
33
+ string: '{"responseHeader":{"status":0,"QTime":0},"response":{"numFound":1,"start":0,"docs":[]}}
34
+
35
+ '
36
+ http_version:
37
+ recorded_at: Sat, 11 Mar 2017 10:53:10 GMT
38
+ - request:
39
+ method: get
40
+ uri: https://search.datacite.org/api?fl=doi,resourceTypeGeneral,relatedIdentifier,nameIdentifier,minted,updated&fq=updated:%5B2013-01-01T00:00:00Z%20TO%202017-12-31T23:59:59Z%5D%20AND%20has_metadata:true%20AND%20is_active:true&q=doi:10.5438/CT8B-X1CE&rows=1000&start=0&wt=json
41
+ body:
42
+ encoding: US-ASCII
43
+ string: ''
44
+ headers:
45
+ User-Agent:
46
+ - Maremma - https://github.com/datacite/maremma
47
+ Accept:
48
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
49
+ response:
50
+ status:
51
+ code: 200
52
+ message: ''
53
+ headers:
54
+ Access-Control-Allow-Methods:
55
+ - GET, POST, OPTIONS
56
+ Access-Control-Allow-Origin:
57
+ - "*"
58
+ Content-Type:
59
+ - application/json;charset=UTF-8
60
+ Date:
61
+ - Sat, 11 Mar 2017 10:53:10 GMT
62
+ Server:
63
+ - openresty/1.11.2.2
64
+ Connection:
65
+ - keep-alive
66
+ body:
67
+ encoding: UTF-8
68
+ string: '{"responseHeader":{"status":0,"QTime":0},"response":{"numFound":1,"start":0,"docs":[{"minted":"2016-12-23T10:35:28Z","updated":"2017-01-09T13:53:10Z","doi":"10.5438/CT8B-X1CE","resourceTypeGeneral":"Text","relatedIdentifier":["References:URL:https://arxiv.org/abs/1501.04916","References:DOI:10.3398/064.075.0213","References:DOI:10.1002/2015JE004895","References:DOI:10.1371/JOURNAL.PBIO.1001687","References:DOI:10.1016/J.JAS.2015.02.009","References:URL:http://hdl.handle.net/10536/DRO/DU:30088291","References:DOI:10.1016/J.AEOLIA.2015.08.001","References:DOI:10.1007/S12209-016-2596-Z","References:DOI:10.5194/ESURFD-2-1005-2014","References:DOI:10.1371/JOURNAL.PONE.0105948","References:URL:https://www.ncbi.nlm.nih.gov/books/NBK7256","References:DOI:10.1016/J.BPJ.2015.04.023","References:DOI:10.1002/ESP.3677","References:DOI:10.1016/J.AEOLIA.2016.01.003","References:DOI:10.4172/2381-8719.1000256","References:DOI:10.1371/JOURNAL.PONE.0134826","References:DOI:10.1016/J.TREE.2010.11.006","IsPartOf:DOI:10.5438/0000-00SS"],"nameIdentifier":["ORCID:0000-0003-1419-2405"]}]}}
69
+
70
+ '
71
+ http_version:
72
+ recorded_at: Sat, 11 Mar 2017 10:53:10 GMT
73
+ - request:
74
+ method: get
75
+ uri: https://api.datacite.org/prefixes/10.3398
76
+ body:
77
+ encoding: US-ASCII
78
+ string: ''
79
+ headers:
80
+ User-Agent:
81
+ - Maremma - https://github.com/datacite/maremma
82
+ Accept:
83
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
84
+ response:
85
+ status:
86
+ code: 200
87
+ message: ''
88
+ headers:
89
+ Access-Control-Allow-Credentials:
90
+ - 'true'
91
+ Access-Control-Allow-Headers:
92
+ - Content-Type,Accept,Accept-Encoding,Origin,User-Agent,Cache-Control,Keep-Alive
93
+ Access-Control-Allow-Methods:
94
+ - POST, GET, OPTIONS
95
+ Access-Control-Allow-Origin:
96
+ - "*"
97
+ Access-Control-Max-Age:
98
+ - '1728000'
99
+ Cache-Control:
100
+ - max-age=0, private, must-revalidate
101
+ Content-Type:
102
+ - application/vnd.api+json; charset=utf-8
103
+ Date:
104
+ - Sat, 11 Mar 2017 10:53:11 GMT
105
+ Etag:
106
+ - W/"7cf730cb403c033dba041619ed5a152f"
107
+ Server:
108
+ - openresty/1.11.2.2
109
+ Status:
110
+ - 200 OK
111
+ Vary:
112
+ - Accept-Encoding
113
+ Via:
114
+ - kong/0.10.0rc3
115
+ X-Content-Type-Options:
116
+ - nosniff
117
+ X-Frame-Options:
118
+ - SAMEORIGIN
119
+ X-Kong-Proxy-Latency:
120
+ - '20'
121
+ X-Kong-Upstream-Latency:
122
+ - '794'
123
+ X-Powered-By:
124
+ - Phusion Passenger 5.1.2
125
+ X-Ratelimit-Limit-Hour:
126
+ - '10000'
127
+ X-Ratelimit-Remaining-Hour:
128
+ - '9913'
129
+ X-Request-Id:
130
+ - e2c43db1-05e5-4b8a-8db4-88d487b238db
131
+ X-Runtime:
132
+ - '0.792479'
133
+ X-Xss-Protection:
134
+ - 1; mode=block
135
+ Connection:
136
+ - keep-alive
137
+ body:
138
+ encoding: UTF-8
139
+ string: '{"data":{"id":"10.3398","type":"prefixes","attributes":{"registration-agency":"Crossref","updated":"2016-09-21T21:02:24Z"}}}'
140
+ http_version:
141
+ recorded_at: Sat, 11 Mar 2017 10:53:11 GMT
142
+ - request:
143
+ method: get
144
+ uri: https://api.datacite.org/prefixes/10.1002
145
+ body:
146
+ encoding: US-ASCII
147
+ string: ''
148
+ headers:
149
+ User-Agent:
150
+ - Maremma - https://github.com/datacite/maremma
151
+ Accept:
152
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
153
+ response:
154
+ status:
155
+ code: 200
156
+ message: ''
157
+ headers:
158
+ Access-Control-Allow-Credentials:
159
+ - 'true'
160
+ Access-Control-Allow-Headers:
161
+ - Content-Type,Accept,Accept-Encoding,Origin,User-Agent,Cache-Control,Keep-Alive
162
+ Access-Control-Allow-Methods:
163
+ - POST, GET, OPTIONS
164
+ Access-Control-Allow-Origin:
165
+ - "*"
166
+ Access-Control-Max-Age:
167
+ - '1728000'
168
+ Cache-Control:
169
+ - max-age=0, private, must-revalidate
170
+ Content-Type:
171
+ - application/vnd.api+json; charset=utf-8
172
+ Date:
173
+ - Sat, 11 Mar 2017 10:53:12 GMT
174
+ Etag:
175
+ - W/"fd60f408ac5a8f5de6aabc61fc16b7b7"
176
+ Server:
177
+ - openresty/1.11.2.2
178
+ Status:
179
+ - 200 OK
180
+ Vary:
181
+ - Accept-Encoding
182
+ Via:
183
+ - kong/0.10.0rc3
184
+ X-Content-Type-Options:
185
+ - nosniff
186
+ X-Frame-Options:
187
+ - SAMEORIGIN
188
+ X-Kong-Proxy-Latency:
189
+ - '1'
190
+ X-Kong-Upstream-Latency:
191
+ - '521'
192
+ X-Powered-By:
193
+ - Phusion Passenger 5.1.2
194
+ X-Ratelimit-Limit-Hour:
195
+ - '10000'
196
+ X-Ratelimit-Remaining-Hour:
197
+ - '9912'
198
+ X-Request-Id:
199
+ - c0d7a391-773b-4174-acba-406228445b58
200
+ X-Runtime:
201
+ - '0.520202'
202
+ X-Xss-Protection:
203
+ - 1; mode=block
204
+ Connection:
205
+ - keep-alive
206
+ body:
207
+ encoding: UTF-8
208
+ string: '{"data":{"id":"10.1002","type":"prefixes","attributes":{"registration-agency":"Crossref","updated":"2016-09-21T20:45:22Z"}}}'
209
+ http_version:
210
+ recorded_at: Sat, 11 Mar 2017 10:53:12 GMT
211
+ - request:
212
+ method: get
213
+ uri: https://api.datacite.org/prefixes/10.1371
214
+ body:
215
+ encoding: US-ASCII
216
+ string: ''
217
+ headers:
218
+ User-Agent:
219
+ - Maremma - https://github.com/datacite/maremma
220
+ Accept:
221
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
222
+ response:
223
+ status:
224
+ code: 200
225
+ message: ''
226
+ headers:
227
+ Access-Control-Allow-Credentials:
228
+ - 'true'
229
+ Access-Control-Allow-Headers:
230
+ - Content-Type,Accept,Accept-Encoding,Origin,User-Agent,Cache-Control,Keep-Alive
231
+ Access-Control-Allow-Methods:
232
+ - POST, GET, OPTIONS
233
+ Access-Control-Allow-Origin:
234
+ - "*"
235
+ Access-Control-Max-Age:
236
+ - '1728000'
237
+ Cache-Control:
238
+ - max-age=0, private, must-revalidate
239
+ Content-Type:
240
+ - application/vnd.api+json; charset=utf-8
241
+ Date:
242
+ - Sat, 11 Mar 2017 10:53:13 GMT
243
+ Etag:
244
+ - W/"a078870f021fe1686525a8135b0e29b8"
245
+ Server:
246
+ - openresty/1.11.2.2
247
+ Status:
248
+ - 200 OK
249
+ Vary:
250
+ - Accept-Encoding
251
+ Via:
252
+ - kong/0.10.0rc3
253
+ X-Content-Type-Options:
254
+ - nosniff
255
+ X-Frame-Options:
256
+ - SAMEORIGIN
257
+ X-Kong-Proxy-Latency:
258
+ - '1'
259
+ X-Kong-Upstream-Latency:
260
+ - '583'
261
+ X-Powered-By:
262
+ - Phusion Passenger 5.1.2
263
+ X-Ratelimit-Limit-Hour:
264
+ - '10000'
265
+ X-Ratelimit-Remaining-Hour:
266
+ - '9911'
267
+ X-Request-Id:
268
+ - a27fbab9-de70-476d-b28f-39e7f76b4185
269
+ X-Runtime:
270
+ - '0.582003'
271
+ X-Xss-Protection:
272
+ - 1; mode=block
273
+ Connection:
274
+ - keep-alive
275
+ body:
276
+ encoding: UTF-8
277
+ string: '{"data":{"id":"10.1371","type":"prefixes","attributes":{"registration-agency":"Crossref","updated":"2016-09-21T20:47:32Z"}}}'
278
+ http_version:
279
+ recorded_at: Sat, 11 Mar 2017 10:53:13 GMT
280
+ - request:
281
+ method: get
282
+ uri: https://api.datacite.org/prefixes/10.1016
283
+ body:
284
+ encoding: US-ASCII
285
+ string: ''
286
+ headers:
287
+ User-Agent:
288
+ - Maremma - https://github.com/datacite/maremma
289
+ Accept:
290
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
291
+ response:
292
+ status:
293
+ code: 200
294
+ message: ''
295
+ headers:
296
+ Access-Control-Allow-Credentials:
297
+ - 'true'
298
+ Access-Control-Allow-Headers:
299
+ - Content-Type,Accept,Accept-Encoding,Origin,User-Agent,Cache-Control,Keep-Alive
300
+ Access-Control-Allow-Methods:
301
+ - POST, GET, OPTIONS
302
+ Access-Control-Allow-Origin:
303
+ - "*"
304
+ Access-Control-Max-Age:
305
+ - '1728000'
306
+ Cache-Control:
307
+ - max-age=0, private, must-revalidate
308
+ Content-Type:
309
+ - application/vnd.api+json; charset=utf-8
310
+ Date:
311
+ - Sat, 11 Mar 2017 10:53:14 GMT
312
+ Etag:
313
+ - W/"7c9a7b8f563d4b464488ed2327095f44"
314
+ Server:
315
+ - openresty/1.11.2.2
316
+ Status:
317
+ - 200 OK
318
+ Vary:
319
+ - Accept-Encoding
320
+ Via:
321
+ - kong/0.10.0rc3
322
+ X-Content-Type-Options:
323
+ - nosniff
324
+ X-Frame-Options:
325
+ - SAMEORIGIN
326
+ X-Kong-Proxy-Latency:
327
+ - '1'
328
+ X-Kong-Upstream-Latency:
329
+ - '632'
330
+ X-Powered-By:
331
+ - Phusion Passenger 5.1.2
332
+ X-Ratelimit-Limit-Hour:
333
+ - '10000'
334
+ X-Ratelimit-Remaining-Hour:
335
+ - '9910'
336
+ X-Request-Id:
337
+ - bace1f17-746f-4c3f-aea7-6ec6c7926ae2
338
+ X-Runtime:
339
+ - '0.629494'
340
+ X-Xss-Protection:
341
+ - 1; mode=block
342
+ Connection:
343
+ - keep-alive
344
+ body:
345
+ encoding: UTF-8
346
+ string: '{"data":{"id":"10.1016","type":"prefixes","attributes":{"registration-agency":"Crossref","updated":"2016-09-21T20:45:22Z"}}}'
347
+ http_version:
348
+ recorded_at: Sat, 11 Mar 2017 10:53:14 GMT
349
+ - request:
350
+ method: get
351
+ uri: https://api.datacite.org/prefixes/10.1007
352
+ body:
353
+ encoding: US-ASCII
354
+ string: ''
355
+ headers:
356
+ User-Agent:
357
+ - Maremma - https://github.com/datacite/maremma
358
+ Accept:
359
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
360
+ response:
361
+ status:
362
+ code: 200
363
+ message: ''
364
+ headers:
365
+ Access-Control-Allow-Credentials:
366
+ - 'true'
367
+ Access-Control-Allow-Headers:
368
+ - Content-Type,Accept,Accept-Encoding,Origin,User-Agent,Cache-Control,Keep-Alive
369
+ Access-Control-Allow-Methods:
370
+ - POST, GET, OPTIONS
371
+ Access-Control-Allow-Origin:
372
+ - "*"
373
+ Access-Control-Max-Age:
374
+ - '1728000'
375
+ Cache-Control:
376
+ - max-age=0, private, must-revalidate
377
+ Content-Type:
378
+ - application/vnd.api+json; charset=utf-8
379
+ Date:
380
+ - Sat, 11 Mar 2017 10:53:14 GMT
381
+ Etag:
382
+ - W/"f53cde77e343e10a66e08694e07c9370"
383
+ Server:
384
+ - openresty/1.11.2.2
385
+ Status:
386
+ - 200 OK
387
+ Vary:
388
+ - Accept-Encoding
389
+ Via:
390
+ - kong/0.10.0rc3
391
+ X-Content-Type-Options:
392
+ - nosniff
393
+ X-Frame-Options:
394
+ - SAMEORIGIN
395
+ X-Kong-Proxy-Latency:
396
+ - '2'
397
+ X-Kong-Upstream-Latency:
398
+ - '537'
399
+ X-Powered-By:
400
+ - Phusion Passenger 5.1.2
401
+ X-Ratelimit-Limit-Hour:
402
+ - '10000'
403
+ X-Ratelimit-Remaining-Hour:
404
+ - '9909'
405
+ X-Request-Id:
406
+ - df920055-7660-4d2a-95cb-812cc4ae22b5
407
+ X-Runtime:
408
+ - '0.535714'
409
+ X-Xss-Protection:
410
+ - 1; mode=block
411
+ Connection:
412
+ - keep-alive
413
+ body:
414
+ encoding: UTF-8
415
+ string: '{"data":{"id":"10.1007","type":"prefixes","attributes":{"registration-agency":"Crossref","updated":"2016-09-21T20:45:22Z"}}}'
416
+ http_version:
417
+ recorded_at: Sat, 11 Mar 2017 10:53:14 GMT
418
+ - request:
419
+ method: get
420
+ uri: https://api.datacite.org/prefixes/10.5194
421
+ body:
422
+ encoding: US-ASCII
423
+ string: ''
424
+ headers:
425
+ User-Agent:
426
+ - Maremma - https://github.com/datacite/maremma
427
+ Accept:
428
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
429
+ response:
430
+ status:
431
+ code: 200
432
+ message: ''
433
+ headers:
434
+ Access-Control-Allow-Credentials:
435
+ - 'true'
436
+ Access-Control-Allow-Headers:
437
+ - Content-Type,Accept,Accept-Encoding,Origin,User-Agent,Cache-Control,Keep-Alive
438
+ Access-Control-Allow-Methods:
439
+ - POST, GET, OPTIONS
440
+ Access-Control-Allow-Origin:
441
+ - "*"
442
+ Access-Control-Max-Age:
443
+ - '1728000'
444
+ Cache-Control:
445
+ - max-age=0, private, must-revalidate
446
+ Content-Type:
447
+ - application/vnd.api+json; charset=utf-8
448
+ Date:
449
+ - Sat, 11 Mar 2017 10:53:15 GMT
450
+ Etag:
451
+ - W/"1f042efb010583ff94ca58ba029fb502"
452
+ Server:
453
+ - openresty/1.11.2.2
454
+ Status:
455
+ - 200 OK
456
+ Vary:
457
+ - Accept-Encoding
458
+ Via:
459
+ - kong/0.10.0rc3
460
+ X-Content-Type-Options:
461
+ - nosniff
462
+ X-Frame-Options:
463
+ - SAMEORIGIN
464
+ X-Kong-Proxy-Latency:
465
+ - '26'
466
+ X-Kong-Upstream-Latency:
467
+ - '249'
468
+ X-Powered-By:
469
+ - Phusion Passenger 5.1.2
470
+ X-Ratelimit-Limit-Hour:
471
+ - '10000'
472
+ X-Ratelimit-Remaining-Hour:
473
+ - '9908'
474
+ X-Request-Id:
475
+ - 7fdf522c-e876-4372-bb91-e44ab2afee5a
476
+ X-Runtime:
477
+ - '0.247254'
478
+ X-Xss-Protection:
479
+ - 1; mode=block
480
+ Connection:
481
+ - keep-alive
482
+ body:
483
+ encoding: UTF-8
484
+ string: '{"data":{"id":"10.5194","type":"prefixes","attributes":{"registration-agency":"Crossref","updated":"2016-09-21T21:04:33Z"}}}'
485
+ http_version:
486
+ recorded_at: Sat, 11 Mar 2017 10:53:15 GMT
487
+ - request:
488
+ method: get
489
+ uri: https://api.datacite.org/prefixes/10.4172
490
+ body:
491
+ encoding: US-ASCII
492
+ string: ''
493
+ headers:
494
+ User-Agent:
495
+ - Maremma - https://github.com/datacite/maremma
496
+ Accept:
497
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
498
+ response:
499
+ status:
500
+ code: 200
501
+ message: ''
502
+ headers:
503
+ Access-Control-Allow-Credentials:
504
+ - 'true'
505
+ Access-Control-Allow-Headers:
506
+ - Content-Type,Accept,Accept-Encoding,Origin,User-Agent,Cache-Control,Keep-Alive
507
+ Access-Control-Allow-Methods:
508
+ - POST, GET, OPTIONS
509
+ Access-Control-Allow-Origin:
510
+ - "*"
511
+ Access-Control-Max-Age:
512
+ - '1728000'
513
+ Cache-Control:
514
+ - max-age=0, private, must-revalidate
515
+ Content-Type:
516
+ - application/vnd.api+json; charset=utf-8
517
+ Date:
518
+ - Sat, 11 Mar 2017 10:53:17 GMT
519
+ Etag:
520
+ - W/"ab8bd9cae1af53dbd883afdd0d684d71"
521
+ Server:
522
+ - openresty/1.11.2.2
523
+ Status:
524
+ - 200 OK
525
+ Vary:
526
+ - Accept-Encoding
527
+ Via:
528
+ - kong/0.10.0rc3
529
+ X-Content-Type-Options:
530
+ - nosniff
531
+ X-Frame-Options:
532
+ - SAMEORIGIN
533
+ X-Kong-Proxy-Latency:
534
+ - '2'
535
+ X-Kong-Upstream-Latency:
536
+ - '1579'
537
+ X-Powered-By:
538
+ - Phusion Passenger 5.1.2
539
+ X-Ratelimit-Limit-Hour:
540
+ - '10000'
541
+ X-Ratelimit-Remaining-Hour:
542
+ - '9907'
543
+ X-Request-Id:
544
+ - 68d17312-2de3-4597-94af-0539adc676b7
545
+ X-Runtime:
546
+ - '1.578423'
547
+ X-Xss-Protection:
548
+ - 1; mode=block
549
+ Connection:
550
+ - keep-alive
551
+ body:
552
+ encoding: UTF-8
553
+ string: '{"data":{"id":"10.4172","type":"prefixes","attributes":{"registration-agency":"Crossref","updated":"2016-09-21T21:03:31Z"}}}'
554
+ http_version:
555
+ recorded_at: Sat, 11 Mar 2017 10:53:17 GMT
556
+ - request:
557
+ method: get
558
+ uri: https://api.datacite.org/prefixes/10.5438
559
+ body:
560
+ encoding: US-ASCII
561
+ string: ''
562
+ headers:
563
+ User-Agent:
564
+ - Maremma - https://github.com/datacite/maremma
565
+ Accept:
566
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
567
+ response:
568
+ status:
569
+ code: 200
570
+ message: ''
571
+ headers:
572
+ Access-Control-Allow-Credentials:
573
+ - 'true'
574
+ Access-Control-Allow-Headers:
575
+ - Content-Type,Accept,Accept-Encoding,Origin,User-Agent,Cache-Control,Keep-Alive
576
+ Access-Control-Allow-Methods:
577
+ - POST, GET, OPTIONS
578
+ Access-Control-Allow-Origin:
579
+ - "*"
580
+ Access-Control-Max-Age:
581
+ - '1728000'
582
+ Cache-Control:
583
+ - max-age=0, private, must-revalidate
584
+ Content-Type:
585
+ - application/vnd.api+json; charset=utf-8
586
+ Date:
587
+ - Sat, 11 Mar 2017 10:53:18 GMT
588
+ Etag:
589
+ - W/"b9f2d79281c542db437c42a5bac25ac8"
590
+ Server:
591
+ - openresty/1.11.2.2
592
+ Status:
593
+ - 200 OK
594
+ Vary:
595
+ - Accept-Encoding
596
+ Via:
597
+ - kong/0.10.0rc3
598
+ X-Content-Type-Options:
599
+ - nosniff
600
+ X-Frame-Options:
601
+ - SAMEORIGIN
602
+ X-Kong-Proxy-Latency:
603
+ - '1'
604
+ X-Kong-Upstream-Latency:
605
+ - '1151'
606
+ X-Powered-By:
607
+ - Phusion Passenger 5.1.2
608
+ X-Ratelimit-Limit-Hour:
609
+ - '10000'
610
+ X-Ratelimit-Remaining-Hour:
611
+ - '9906'
612
+ X-Request-Id:
613
+ - 1056a352-0e69-4cf5-bc55-71a98aeb66ea
614
+ X-Runtime:
615
+ - '1.149475'
616
+ X-Xss-Protection:
617
+ - 1; mode=block
618
+ Content-Length:
619
+ - '124'
620
+ Connection:
621
+ - keep-alive
622
+ body:
623
+ encoding: UTF-8
624
+ string: '{"data":{"id":"10.5438","type":"prefixes","attributes":{"registration-agency":"DataCite","updated":"2016-09-21T20:27:15Z"}}}'
625
+ http_version:
626
+ recorded_at: Sat, 11 Mar 2017 10:53:18 GMT
627
+ - request:
628
+ method: post
629
+ uri: https://bus-staging.eventdata.crossref.org/events
630
+ body:
631
+ encoding: UTF-8
632
+ string: '{"id":"20d8204b-5bf9-4d18-8ec2-0179688b7bfa","message_action":"create","subj_id":"https://doi.org/10.5438/ct8b-x1ce","obj_id":"https://doi.org/10.3398/064.075.0213","relation_type_id":"references","source_id":"datacite","occurred_at":"2016-12-23T10:35:28Z"}'
633
+ headers:
634
+ User-Agent:
635
+ - Maremma - https://github.com/datacite/maremma
636
+ Content-Type:
637
+ - application/json
638
+ Accept:
639
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
640
+ Authorization:
641
+ - Bearer <EVENTDATA_TOKEN>
642
+ response:
643
+ status:
644
+ code: 201
645
+ message: ''
646
+ headers:
647
+ Content-Type:
648
+ - application/json
649
+ Vary:
650
+ - Accept
651
+ Access-Control-Allow-Origin:
652
+ - "*"
653
+ Content-Length:
654
+ - '0'
655
+ Server:
656
+ - http-kit
657
+ Date:
658
+ - Sat, 11 Mar 2017 10:53:18 GMT
659
+ body:
660
+ encoding: UTF-8
661
+ string: ''
662
+ http_version:
663
+ recorded_at: Sat, 11 Mar 2017 10:53:18 GMT
664
+ - request:
665
+ method: post
666
+ uri: https://bus-staging.eventdata.crossref.org/events
667
+ body:
668
+ encoding: UTF-8
669
+ string: '{"id":"2427eaba-fcfb-49ca-b709-42900d11e029","message_action":"create","subj_id":"https://doi.org/10.5438/ct8b-x1ce","obj_id":"https://doi.org/10.1002/2015je004895","relation_type_id":"references","source_id":"datacite","occurred_at":"2016-12-23T10:35:28Z"}'
670
+ headers:
671
+ User-Agent:
672
+ - Maremma - https://github.com/datacite/maremma
673
+ Content-Type:
674
+ - application/json
675
+ Accept:
676
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
677
+ Authorization:
678
+ - Bearer <EVENTDATA_TOKEN>
679
+ response:
680
+ status:
681
+ code: 201
682
+ message: ''
683
+ headers:
684
+ Content-Type:
685
+ - application/json
686
+ Vary:
687
+ - Accept
688
+ Access-Control-Allow-Origin:
689
+ - "*"
690
+ Content-Length:
691
+ - '0'
692
+ Server:
693
+ - http-kit
694
+ Date:
695
+ - Sat, 11 Mar 2017 10:53:19 GMT
696
+ body:
697
+ encoding: UTF-8
698
+ string: ''
699
+ http_version:
700
+ recorded_at: Sat, 11 Mar 2017 10:53:19 GMT
701
+ - request:
702
+ method: post
703
+ uri: https://bus-staging.eventdata.crossref.org/events
704
+ body:
705
+ encoding: UTF-8
706
+ string: '{"id":"f0067604-b1cb-4431-9715-e890a49729cc","message_action":"create","subj_id":"https://doi.org/10.5438/ct8b-x1ce","obj_id":"https://doi.org/10.1371/journal.pbio.1001687","relation_type_id":"references","source_id":"datacite","occurred_at":"2016-12-23T10:35:28Z"}'
707
+ headers:
708
+ User-Agent:
709
+ - Maremma - https://github.com/datacite/maremma
710
+ Content-Type:
711
+ - application/json
712
+ Accept:
713
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
714
+ Authorization:
715
+ - Bearer <EVENTDATA_TOKEN>
716
+ response:
717
+ status:
718
+ code: 201
719
+ message: ''
720
+ headers:
721
+ Content-Type:
722
+ - application/json
723
+ Vary:
724
+ - Accept
725
+ Access-Control-Allow-Origin:
726
+ - "*"
727
+ Content-Length:
728
+ - '0'
729
+ Server:
730
+ - http-kit
731
+ Date:
732
+ - Sat, 11 Mar 2017 10:53:19 GMT
733
+ body:
734
+ encoding: UTF-8
735
+ string: ''
736
+ http_version:
737
+ recorded_at: Sat, 11 Mar 2017 10:53:19 GMT
738
+ - request:
739
+ method: post
740
+ uri: https://bus-staging.eventdata.crossref.org/events
741
+ body:
742
+ encoding: UTF-8
743
+ string: '{"id":"643ee548-4dd4-4e63-8ff1-e9bc38a65692","message_action":"create","subj_id":"https://doi.org/10.5438/ct8b-x1ce","obj_id":"https://doi.org/10.1016/j.jas.2015.02.009","relation_type_id":"references","source_id":"datacite","occurred_at":"2016-12-23T10:35:28Z"}'
744
+ headers:
745
+ User-Agent:
746
+ - Maremma - https://github.com/datacite/maremma
747
+ Content-Type:
748
+ - application/json
749
+ Accept:
750
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
751
+ Authorization:
752
+ - Bearer <EVENTDATA_TOKEN>
753
+ response:
754
+ status:
755
+ code: 201
756
+ message: ''
757
+ headers:
758
+ Content-Type:
759
+ - application/json
760
+ Vary:
761
+ - Accept
762
+ Access-Control-Allow-Origin:
763
+ - "*"
764
+ Content-Length:
765
+ - '0'
766
+ Server:
767
+ - http-kit
768
+ Date:
769
+ - Sat, 11 Mar 2017 10:53:19 GMT
770
+ body:
771
+ encoding: UTF-8
772
+ string: ''
773
+ http_version:
774
+ recorded_at: Sat, 11 Mar 2017 10:53:19 GMT
775
+ - request:
776
+ method: post
777
+ uri: https://bus-staging.eventdata.crossref.org/events
778
+ body:
779
+ encoding: UTF-8
780
+ string: '{"id":"4c5491fc-a159-4852-985f-7b3bef97cf99","message_action":"create","subj_id":"https://doi.org/10.5438/ct8b-x1ce","obj_id":"https://doi.org/10.1016/j.aeolia.2015.08.001","relation_type_id":"references","source_id":"datacite","occurred_at":"2016-12-23T10:35:28Z"}'
781
+ headers:
782
+ User-Agent:
783
+ - Maremma - https://github.com/datacite/maremma
784
+ Content-Type:
785
+ - application/json
786
+ Accept:
787
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
788
+ Authorization:
789
+ - Bearer <EVENTDATA_TOKEN>
790
+ response:
791
+ status:
792
+ code: 201
793
+ message: ''
794
+ headers:
795
+ Content-Type:
796
+ - application/json
797
+ Vary:
798
+ - Accept
799
+ Access-Control-Allow-Origin:
800
+ - "*"
801
+ Content-Length:
802
+ - '0'
803
+ Server:
804
+ - http-kit
805
+ Date:
806
+ - Sat, 11 Mar 2017 10:53:19 GMT
807
+ body:
808
+ encoding: UTF-8
809
+ string: ''
810
+ http_version:
811
+ recorded_at: Sat, 11 Mar 2017 10:53:20 GMT
812
+ - request:
813
+ method: post
814
+ uri: https://bus-staging.eventdata.crossref.org/events
815
+ body:
816
+ encoding: UTF-8
817
+ string: '{"id":"13564ee8-5ae7-4063-9640-f52af0d2058e","message_action":"create","subj_id":"https://doi.org/10.5438/ct8b-x1ce","obj_id":"https://doi.org/10.1007/s12209-016-2596-z","relation_type_id":"references","source_id":"datacite","occurred_at":"2016-12-23T10:35:28Z"}'
818
+ headers:
819
+ User-Agent:
820
+ - Maremma - https://github.com/datacite/maremma
821
+ Content-Type:
822
+ - application/json
823
+ Accept:
824
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
825
+ Authorization:
826
+ - Bearer <EVENTDATA_TOKEN>
827
+ response:
828
+ status:
829
+ code: 201
830
+ message: ''
831
+ headers:
832
+ Content-Type:
833
+ - application/json
834
+ Vary:
835
+ - Accept
836
+ Access-Control-Allow-Origin:
837
+ - "*"
838
+ Content-Length:
839
+ - '0'
840
+ Server:
841
+ - http-kit
842
+ Date:
843
+ - Sat, 11 Mar 2017 10:53:20 GMT
844
+ body:
845
+ encoding: UTF-8
846
+ string: ''
847
+ http_version:
848
+ recorded_at: Sat, 11 Mar 2017 10:53:20 GMT
849
+ - request:
850
+ method: post
851
+ uri: https://bus-staging.eventdata.crossref.org/events
852
+ body:
853
+ encoding: UTF-8
854
+ string: '{"id":"92177c98-2e1d-49a4-a34c-c879d29cc7be","message_action":"create","subj_id":"https://doi.org/10.5438/ct8b-x1ce","obj_id":"https://doi.org/10.5194/esurfd-2-1005-2014","relation_type_id":"references","source_id":"datacite","occurred_at":"2016-12-23T10:35:28Z"}'
855
+ headers:
856
+ User-Agent:
857
+ - Maremma - https://github.com/datacite/maremma
858
+ Content-Type:
859
+ - application/json
860
+ Accept:
861
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
862
+ Authorization:
863
+ - Bearer <EVENTDATA_TOKEN>
864
+ response:
865
+ status:
866
+ code: 201
867
+ message: ''
868
+ headers:
869
+ Content-Type:
870
+ - application/json
871
+ Vary:
872
+ - Accept
873
+ Access-Control-Allow-Origin:
874
+ - "*"
875
+ Content-Length:
876
+ - '0'
877
+ Server:
878
+ - http-kit
879
+ Date:
880
+ - Sat, 11 Mar 2017 10:53:20 GMT
881
+ body:
882
+ encoding: UTF-8
883
+ string: ''
884
+ http_version:
885
+ recorded_at: Sat, 11 Mar 2017 10:53:20 GMT
886
+ - request:
887
+ method: post
888
+ uri: https://bus-staging.eventdata.crossref.org/events
889
+ body:
890
+ encoding: UTF-8
891
+ string: '{"id":"cbbd9ca0-5695-444f-a1d8-cbd0639120eb","message_action":"create","subj_id":"https://doi.org/10.5438/ct8b-x1ce","obj_id":"https://doi.org/10.1371/journal.pone.0105948","relation_type_id":"references","source_id":"datacite","occurred_at":"2016-12-23T10:35:28Z"}'
892
+ headers:
893
+ User-Agent:
894
+ - Maremma - https://github.com/datacite/maremma
895
+ Content-Type:
896
+ - application/json
897
+ Accept:
898
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
899
+ Authorization:
900
+ - Bearer <EVENTDATA_TOKEN>
901
+ response:
902
+ status:
903
+ code: 201
904
+ message: ''
905
+ headers:
906
+ Content-Type:
907
+ - application/json
908
+ Vary:
909
+ - Accept
910
+ Access-Control-Allow-Origin:
911
+ - "*"
912
+ Content-Length:
913
+ - '0'
914
+ Server:
915
+ - http-kit
916
+ Date:
917
+ - Sat, 11 Mar 2017 10:53:20 GMT
918
+ body:
919
+ encoding: UTF-8
920
+ string: ''
921
+ http_version:
922
+ recorded_at: Sat, 11 Mar 2017 10:53:20 GMT
923
+ - request:
924
+ method: post
925
+ uri: https://bus-staging.eventdata.crossref.org/events
926
+ body:
927
+ encoding: UTF-8
928
+ string: '{"id":"7680ec63-09bd-42b0-8e7c-a74b691f1546","message_action":"create","subj_id":"https://doi.org/10.5438/ct8b-x1ce","obj_id":"https://doi.org/10.1016/j.bpj.2015.04.023","relation_type_id":"references","source_id":"datacite","occurred_at":"2016-12-23T10:35:28Z"}'
929
+ headers:
930
+ User-Agent:
931
+ - Maremma - https://github.com/datacite/maremma
932
+ Content-Type:
933
+ - application/json
934
+ Accept:
935
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
936
+ Authorization:
937
+ - Bearer <EVENTDATA_TOKEN>
938
+ response:
939
+ status:
940
+ code: 201
941
+ message: ''
942
+ headers:
943
+ Content-Type:
944
+ - application/json
945
+ Vary:
946
+ - Accept
947
+ Access-Control-Allow-Origin:
948
+ - "*"
949
+ Content-Length:
950
+ - '0'
951
+ Server:
952
+ - http-kit
953
+ Date:
954
+ - Sat, 11 Mar 2017 10:53:20 GMT
955
+ body:
956
+ encoding: UTF-8
957
+ string: ''
958
+ http_version:
959
+ recorded_at: Sat, 11 Mar 2017 10:53:20 GMT
960
+ - request:
961
+ method: post
962
+ uri: https://bus-staging.eventdata.crossref.org/events
963
+ body:
964
+ encoding: UTF-8
965
+ string: '{"id":"4ae63af3-4e7d-4a1c-ad10-5ef47688148e","message_action":"create","subj_id":"https://doi.org/10.5438/ct8b-x1ce","obj_id":"https://doi.org/10.1002/esp.3677","relation_type_id":"references","source_id":"datacite","occurred_at":"2016-12-23T10:35:28Z"}'
966
+ headers:
967
+ User-Agent:
968
+ - Maremma - https://github.com/datacite/maremma
969
+ Content-Type:
970
+ - application/json
971
+ Accept:
972
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
973
+ Authorization:
974
+ - Bearer <EVENTDATA_TOKEN>
975
+ response:
976
+ status:
977
+ code: 201
978
+ message: ''
979
+ headers:
980
+ Content-Type:
981
+ - application/json
982
+ Vary:
983
+ - Accept
984
+ Access-Control-Allow-Origin:
985
+ - "*"
986
+ Content-Length:
987
+ - '0'
988
+ Server:
989
+ - http-kit
990
+ Date:
991
+ - Sat, 11 Mar 2017 10:53:21 GMT
992
+ body:
993
+ encoding: UTF-8
994
+ string: ''
995
+ http_version:
996
+ recorded_at: Sat, 11 Mar 2017 10:53:21 GMT
997
+ - request:
998
+ method: post
999
+ uri: https://bus-staging.eventdata.crossref.org/events
1000
+ body:
1001
+ encoding: UTF-8
1002
+ string: '{"id":"259d7ddb-77d7-4f8d-833f-e63fb3d011a0","message_action":"create","subj_id":"https://doi.org/10.5438/ct8b-x1ce","obj_id":"https://doi.org/10.1016/j.aeolia.2016.01.003","relation_type_id":"references","source_id":"datacite","occurred_at":"2016-12-23T10:35:28Z"}'
1003
+ headers:
1004
+ User-Agent:
1005
+ - Maremma - https://github.com/datacite/maremma
1006
+ Content-Type:
1007
+ - application/json
1008
+ Accept:
1009
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
1010
+ Authorization:
1011
+ - Bearer <EVENTDATA_TOKEN>
1012
+ response:
1013
+ status:
1014
+ code: 201
1015
+ message: ''
1016
+ headers:
1017
+ Content-Type:
1018
+ - application/json
1019
+ Vary:
1020
+ - Accept
1021
+ Access-Control-Allow-Origin:
1022
+ - "*"
1023
+ Content-Length:
1024
+ - '0'
1025
+ Server:
1026
+ - http-kit
1027
+ Date:
1028
+ - Sat, 11 Mar 2017 10:53:21 GMT
1029
+ body:
1030
+ encoding: UTF-8
1031
+ string: ''
1032
+ http_version:
1033
+ recorded_at: Sat, 11 Mar 2017 10:53:21 GMT
1034
+ - request:
1035
+ method: post
1036
+ uri: https://bus-staging.eventdata.crossref.org/events
1037
+ body:
1038
+ encoding: UTF-8
1039
+ string: '{"id":"b16f3c8d-b7d8-4a0a-9ae5-44291f2b4f26","message_action":"create","subj_id":"https://doi.org/10.5438/ct8b-x1ce","obj_id":"https://doi.org/10.4172/2381-8719.1000256","relation_type_id":"references","source_id":"datacite","occurred_at":"2016-12-23T10:35:28Z"}'
1040
+ headers:
1041
+ User-Agent:
1042
+ - Maremma - https://github.com/datacite/maremma
1043
+ Content-Type:
1044
+ - application/json
1045
+ Accept:
1046
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
1047
+ Authorization:
1048
+ - Bearer <EVENTDATA_TOKEN>
1049
+ response:
1050
+ status:
1051
+ code: 201
1052
+ message: ''
1053
+ headers:
1054
+ Content-Type:
1055
+ - application/json
1056
+ Vary:
1057
+ - Accept
1058
+ Access-Control-Allow-Origin:
1059
+ - "*"
1060
+ Content-Length:
1061
+ - '0'
1062
+ Server:
1063
+ - http-kit
1064
+ Date:
1065
+ - Sat, 11 Mar 2017 10:53:21 GMT
1066
+ body:
1067
+ encoding: UTF-8
1068
+ string: ''
1069
+ http_version:
1070
+ recorded_at: Sat, 11 Mar 2017 10:53:21 GMT
1071
+ - request:
1072
+ method: post
1073
+ uri: https://bus-staging.eventdata.crossref.org/events
1074
+ body:
1075
+ encoding: UTF-8
1076
+ string: '{"id":"664f7dfb-bd8e-4357-a01b-b849583a800c","message_action":"create","subj_id":"https://doi.org/10.5438/ct8b-x1ce","obj_id":"https://doi.org/10.1371/journal.pone.0134826","relation_type_id":"references","source_id":"datacite","occurred_at":"2016-12-23T10:35:28Z"}'
1077
+ headers:
1078
+ User-Agent:
1079
+ - Maremma - https://github.com/datacite/maremma
1080
+ Content-Type:
1081
+ - application/json
1082
+ Accept:
1083
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
1084
+ Authorization:
1085
+ - Bearer <EVENTDATA_TOKEN>
1086
+ response:
1087
+ status:
1088
+ code: 201
1089
+ message: ''
1090
+ headers:
1091
+ Content-Type:
1092
+ - application/json
1093
+ Vary:
1094
+ - Accept
1095
+ Access-Control-Allow-Origin:
1096
+ - "*"
1097
+ Content-Length:
1098
+ - '0'
1099
+ Server:
1100
+ - http-kit
1101
+ Date:
1102
+ - Sat, 11 Mar 2017 10:53:22 GMT
1103
+ body:
1104
+ encoding: UTF-8
1105
+ string: ''
1106
+ http_version:
1107
+ recorded_at: Sat, 11 Mar 2017 10:53:22 GMT
1108
+ - request:
1109
+ method: post
1110
+ uri: https://bus-staging.eventdata.crossref.org/events
1111
+ body:
1112
+ encoding: UTF-8
1113
+ string: '{"id":"88b8346f-099b-4ecf-917d-7811ef66377e","message_action":"create","subj_id":"https://doi.org/10.5438/ct8b-x1ce","obj_id":"https://doi.org/10.1016/j.tree.2010.11.006","relation_type_id":"references","source_id":"datacite","occurred_at":"2016-12-23T10:35:28Z"}'
1114
+ headers:
1115
+ User-Agent:
1116
+ - Maremma - https://github.com/datacite/maremma
1117
+ Content-Type:
1118
+ - application/json
1119
+ Accept:
1120
+ - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
1121
+ Authorization:
1122
+ - Bearer <EVENTDATA_TOKEN>
1123
+ response:
1124
+ status:
1125
+ code: 201
1126
+ message: ''
1127
+ headers:
1128
+ Content-Type:
1129
+ - application/json
1130
+ Vary:
1131
+ - Accept
1132
+ Access-Control-Allow-Origin:
1133
+ - "*"
1134
+ Content-Length:
1135
+ - '0'
1136
+ Server:
1137
+ - http-kit
1138
+ Date:
1139
+ - Sat, 11 Mar 2017 10:53:22 GMT
1140
+ body:
1141
+ encoding: UTF-8
1142
+ string: ''
1143
+ http_version:
1144
+ recorded_at: Sat, 11 Mar 2017 10:53:22 GMT
1145
+ recorded_with: VCR 3.0.3