toccatore 0.3.9 → 0.4.15

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 (78) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile.lock +76 -54
  3. data/README.md +1 -1
  4. data/lib/toccatore/base.rb +15 -4
  5. data/lib/toccatore/cli.rb +12 -0
  6. data/lib/toccatore/datacite_related.rb +18 -3
  7. data/lib/toccatore/orcid_update.rb +6 -2
  8. data/lib/toccatore/queue.rb +56 -0
  9. data/lib/toccatore/usage_update.rb +183 -0
  10. data/lib/toccatore/version.rb +1 -1
  11. data/lib/toccatore.rb +2 -0
  12. data/spec/base_spec.rb +4 -4
  13. data/spec/cli_spec.rb +36 -3
  14. data/spec/datacite_related_spec.rb +10 -10
  15. data/spec/factories/default.rb +22 -0
  16. data/spec/fixtures/event_data_resp_1 +2 -0
  17. data/spec/fixtures/event_data_resp_2 +4 -0
  18. data/spec/fixtures/events_empty.json +33 -0
  19. data/spec/fixtures/usage_event.json +1 -0
  20. data/spec/fixtures/usage_event_fail.json +17 -0
  21. data/spec/fixtures/usage_events.json +63 -0
  22. data/spec/fixtures/usage_update.json +101 -0
  23. data/spec/fixtures/usage_update_1.json +36738 -0
  24. data/spec/fixtures/usage_update_2.json +171 -0
  25. data/spec/fixtures/usage_update_3.json +176 -0
  26. data/spec/fixtures/usage_update_4.json +101 -0
  27. data/spec/fixtures/usage_update_nil.json +6 -0
  28. data/spec/fixtures/vcr_cassettes/Toccatore_Base/get_doi_ra/crossref.yml +21 -45
  29. data/spec/fixtures/vcr_cassettes/Toccatore_Base/get_doi_ra/datacite.yml +23 -47
  30. data/spec/fixtures/vcr_cassettes/Toccatore_Base/send_notification_to_slack/datacite_related.yml +14 -12
  31. data/spec/fixtures/vcr_cassettes/Toccatore_Base/send_notification_to_slack/datacite_related_no_works.yml +15 -13
  32. data/spec/fixtures/vcr_cassettes/Toccatore_Base/send_notification_to_slack/orcid_update.yml +14 -12
  33. data/spec/fixtures/vcr_cassettes/Toccatore_Base/send_notification_to_slack/orcid_update_no_works.yml +15 -13
  34. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_fail.yml +345 -852
  35. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_query_by_DOI.yml +327 -409
  36. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_query_by_related_identifier.yml +140 -117
  37. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_succeed.yml +1267 -2068
  38. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/datacite_related/should_succeed_with_no_works.yml +31 -25
  39. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_fail.yml +47 -39
  40. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_query_by_DOI.yml +673 -855
  41. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_query_by_ORCID_ID.yml +1885 -2419
  42. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_succeed.yml +1555 -1991
  43. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/orcid_update/should_succeed_with_no_works.yml +31 -27
  44. data/spec/fixtures/vcr_cassettes/Toccatore_CLI/usage_update/no_reports_in_the_queue/should_succeed_with_no_works.yml +196 -0
  45. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/get_data/should_allow_queries_by_DOI_of_the_Datacite_Metadata_Search_API.yml +16 -12
  46. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/get_data/should_allow_queries_by_related_identifier_of_the_Datacite_Metadata_Search_API.yml +17 -13
  47. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/get_data/should_report_if_there_are_no_works_returned_by_the_Datacite_Metadata_Search_API.yml +16 -12
  48. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/get_data/should_report_if_there_are_works_returned_by_the_Datacite_Metadata_Search_API.yml +16 -14
  49. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/get_total/with_no_works.yml +15 -11
  50. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/get_total/with_works.yml +16 -12
  51. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/parse_data/should_report_if_there_are_works_returned_by_the_Datacite_Metadata_Search_API.yml +437 -869
  52. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/push_data/should_report_if_there_are_works_returned_by_the_Datacite_Metadata_Search_API.yml +1240 -1662
  53. data/spec/fixtures/vcr_cassettes/Toccatore_DataciteRelated/push_data/should_work_with_DataCite_Event_Data.yml +4026 -6556
  54. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/get_data/should_allow_queries_by_DOI_of_the_Datacite_Metadata_Search_API.yml +15 -13
  55. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/get_data/should_allow_queries_by_ORCID_ID_of_the_Datacite_Metadata_Search_API.yml +15 -11
  56. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/get_data/should_report_if_there_are_no_works_returned_by_the_Datacite_Metadata_Search_API.yml +15 -11
  57. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/get_data/should_report_if_there_are_works_returned_by_the_Datacite_Metadata_Search_API.yml +15 -13
  58. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/get_total/with_no_works.yml +15 -13
  59. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/get_total/with_works.yml +15 -13
  60. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/push_data/should_delete_claims.yml +25 -32
  61. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/push_data/should_report_if_there_are_works_returned_by_the_Datacite_Metadata_Search_API.yml +1347 -1791
  62. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/queue_jobs/should_report_if_there_are_no_works_returned_by_the_Datacite_Metadata_Search_API.yml +14 -10
  63. data/spec/fixtures/vcr_cassettes/Toccatore_OrcidUpdate/queue_jobs/should_report_if_there_are_works_returned_by_the_Datacite_Metadata_Search_API.yml +29 -25
  64. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_data/when_there_are_messages/should_return_the_data_for_one_message.yml +73 -0
  65. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_data/when_there_is_ONE_message/should_return_the_data_for_one_message.yml +73 -0
  66. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_message/should_return_no_meessage_when_the_queue_is_empty.yml +95 -0
  67. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_message/should_return_one_message_when_there_are_multiple_messages.yml +95 -0
  68. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/get_total/when_is_working_with_AWS.yml +187 -0
  69. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/push_data/should_fail_if_format_of_the_event_is_empty.yml +169 -0
  70. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/push_data/should_fail_if_format_of_the_event_is_wrong.yml +667 -0
  71. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/push_data/should_work_with_a_single_item.yml +169 -0
  72. data/spec/fixtures/vcr_cassettes/Toccatore_UsageUpdate/queue_url/should_return_always_correct_queue_url.yml +49 -0
  73. data/spec/orcid_update_spec.rb +1 -1
  74. data/spec/queue_spec.rb +47 -0
  75. data/spec/spec_helper.rb +23 -1
  76. data/spec/usage_update_spec.rb +146 -0
  77. data/toccatore.gemspec +11 -5
  78. metadata +109 -26
@@ -8,35 +8,37 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - Maremma - https://github.com/datacite/maremma
11
+ - Mozilla/5.0 (compatible; Maremma/4.1; +https://github.com/datacite/maremma)
12
12
  Accept:
13
13
  - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
14
14
  response:
15
15
  status:
16
16
  code: 200
17
- message: ''
17
+ message: OK
18
18
  headers:
19
- Access-Control-Allow-Methods:
20
- - GET, POST, OPTIONS
21
- Access-Control-Allow-Origin:
22
- - "*"
19
+ Date:
20
+ - Fri, 10 Aug 2018 16:24:00 GMT
23
21
  Content-Type:
24
22
  - application/json;charset=UTF-8
25
- Date:
26
- - Tue, 04 Jul 2017 17:52:10 GMT
27
- Server:
28
- - openresty/1.11.2.2
29
- Content-Length:
30
- - '88'
31
23
  Connection:
32
24
  - keep-alive
25
+ Server:
26
+ - nginx/1.10.3 (Ubuntu)
27
+ Access-Control-Allow-Origin:
28
+ - "*"
29
+ Access-Control-Allow-Methods:
30
+ - GET, POST, PUT, DELETE, OPTIONS
31
+ Access-Control-Allow-Headers:
32
+ - DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
33
+ Access-Control-Expose-Headers:
34
+ - DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
33
35
  body:
34
- encoding: UTF-8
35
- string: '{"responseHeader":{"status":0,"QTime":0},"response":{"numFound":0,"start":0,"docs":[]}}
36
+ encoding: ASCII-8BIT
37
+ string: '{"responseHeader":{"status":0,"QTime":1},"response":{"numFound":0,"start":0,"docs":[]}}
36
38
 
37
39
  '
38
40
  http_version:
39
- recorded_at: Tue, 04 Jul 2017 17:52:10 GMT
41
+ recorded_at: Fri, 10 Aug 2018 16:24:00 GMT
40
42
  - request:
41
43
  method: post
42
44
  uri: "<SLACK_WEBHOOK_URL>"
@@ -63,31 +65,33 @@ http_interactions:
63
65
  - '22'
64
66
  Connection:
65
67
  - keep-alive
66
- Access-Control-Allow-Origin:
67
- - "*"
68
68
  Date:
69
- - Tue, 04 Jul 2017 17:52:10 GMT
70
- Referrer-Policy:
71
- - no-referrer
69
+ - Fri, 10 Aug 2018 16:24:01 GMT
72
70
  Server:
73
71
  - Apache
72
+ X-Slack-Backend:
73
+ - h
74
+ Referrer-Policy:
75
+ - no-referrer
74
76
  Strict-Transport-Security:
75
77
  - max-age=31536000; includeSubDomains; preload
76
- Vary:
77
- - Accept-Encoding
78
78
  X-Frame-Options:
79
79
  - SAMEORIGIN
80
- X-Slack-Backend:
81
- - h
80
+ Vary:
81
+ - Accept-Encoding
82
+ Access-Control-Allow-Origin:
83
+ - "*"
84
+ X-Via:
85
+ - haproxy-www-ej1j
82
86
  X-Cache:
83
87
  - Miss from cloudfront
84
88
  Via:
85
- - 1.1 6fd049110ebc3ac6deddab8b0bf5d686.cloudfront.net (CloudFront)
89
+ - 1.1 a0ca759832376930b4e288cce8d0a079.cloudfront.net (CloudFront)
86
90
  X-Amz-Cf-Id:
87
- - ndFZvRhjmWVmz2RelM5Qye5Nj8vWQCTxXwoBpFFhMKUiEu49nByrvw==
91
+ - PkgMrWQG3k7Il00qtmCThKctSvB3Kp4Ypg6dwb6UY9tjOLTLdrSWtw==
88
92
  body:
89
93
  encoding: ASCII-8BIT
90
94
  string: ok
91
95
  http_version:
92
- recorded_at: Tue, 04 Jul 2017 17:52:10 GMT
96
+ recorded_at: Fri, 10 Aug 2018 16:24:01 GMT
93
97
  recorded_with: VCR 3.0.3
@@ -0,0 +1,196 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://sqs.eu-west-1.amazonaws.com/
6
+ body:
7
+ encoding: UTF-8
8
+ string: Action=GetQueueUrl&QueueName=test_usage&Version=2012-11-05
9
+ headers:
10
+ Content-Type:
11
+ - application/x-www-form-urlencoded; charset=utf-8
12
+ Accept-Encoding:
13
+ - ''
14
+ User-Agent:
15
+ - aws-sdk-ruby3/3.24.0 ruby/2.4.2 x86_64-darwin16 aws-sdk-sqs/1.4.0
16
+ X-Amz-Date:
17
+ - 20180810T162401Z
18
+ X-Amz-Content-Sha256:
19
+ - 5761efd13dd0ed81182207171d3660628968189941431d6044920ef8fe7b1160
20
+ Authorization:
21
+ - AWS4-HMAC-SHA256 Credential=AKIAIUG4XO77LTVIG3PA/20180810/eu-west-1/sqs/aws4_request,
22
+ SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=c3b7f25de85fe8aed59786f23ac7d27da5935fc8f84e4d5b15e9faec6652470d
23
+ Content-Length:
24
+ - '58'
25
+ Accept:
26
+ - "*/*"
27
+ response:
28
+ status:
29
+ code: 200
30
+ message: OK
31
+ headers:
32
+ Server:
33
+ - Server
34
+ Date:
35
+ - Fri, 10 Aug 2018 16:24:01 GMT
36
+ Content-Type:
37
+ - text/xml
38
+ Content-Length:
39
+ - '330'
40
+ Connection:
41
+ - keep-alive
42
+ X-Amzn-Requestid:
43
+ - bedb9fae-0d76-5aef-941c-cc49b31773ee
44
+ body:
45
+ encoding: UTF-8
46
+ string: <?xml version="1.0"?><GetQueueUrlResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><GetQueueUrlResult><QueueUrl>https://sqs.eu-west-1.amazonaws.com/404017989009/test_usage</QueueUrl></GetQueueUrlResult><ResponseMetadata><RequestId>bedb9fae-0d76-5aef-941c-cc49b31773ee</RequestId></ResponseMetadata></GetQueueUrlResponse>
47
+ http_version:
48
+ recorded_at: Fri, 10 Aug 2018 16:24:01 GMT
49
+ - request:
50
+ method: post
51
+ uri: https://sqs.eu-west-1.amazonaws.com/404017989009/test_usage
52
+ body:
53
+ encoding: UTF-8
54
+ string: Action=GetQueueAttributes&AttributeName.1=ApproximateNumberOfMessages&AttributeName.2=ApproximateNumberOfMessagesNotVisible&QueueUrl=https%3A%2F%2Fsqs.eu-west-1.amazonaws.com%2F404017989009%2Ftest_usage&Version=2012-11-05
55
+ headers:
56
+ Content-Type:
57
+ - application/x-www-form-urlencoded; charset=utf-8
58
+ Accept-Encoding:
59
+ - ''
60
+ User-Agent:
61
+ - aws-sdk-ruby3/3.24.0 ruby/2.4.2 x86_64-darwin16 aws-sdk-sqs/1.4.0
62
+ X-Amz-Date:
63
+ - 20180810T162401Z
64
+ X-Amz-Content-Sha256:
65
+ - 4fa1f9790ab8d8b778fc048ef890ef00e82c1fd4658cd21964eff9eb5dc9426d
66
+ Authorization:
67
+ - AWS4-HMAC-SHA256 Credential=AKIAIUG4XO77LTVIG3PA/20180810/eu-west-1/sqs/aws4_request,
68
+ SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=491768970655ea386155b2ff2f0381a5079f79138b7ba78f223b0724cb4475ff
69
+ Content-Length:
70
+ - '221'
71
+ Accept:
72
+ - "*/*"
73
+ response:
74
+ status:
75
+ code: 200
76
+ message: OK
77
+ headers:
78
+ Server:
79
+ - Server
80
+ Date:
81
+ - Fri, 10 Aug 2018 16:24:02 GMT
82
+ Content-Type:
83
+ - text/xml
84
+ Content-Length:
85
+ - '446'
86
+ Connection:
87
+ - keep-alive
88
+ X-Amzn-Requestid:
89
+ - 543f51ac-8d8a-5b8e-9114-024b33e84f7f
90
+ body:
91
+ encoding: UTF-8
92
+ string: <?xml version="1.0"?><GetQueueAttributesResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><GetQueueAttributesResult><Attribute><Name>ApproximateNumberOfMessages</Name><Value>0</Value></Attribute><Attribute><Name>ApproximateNumberOfMessagesNotVisible</Name><Value>0</Value></Attribute></GetQueueAttributesResult><ResponseMetadata><RequestId>543f51ac-8d8a-5b8e-9114-024b33e84f7f</RequestId></ResponseMetadata></GetQueueAttributesResponse>
93
+ http_version:
94
+ recorded_at: Fri, 10 Aug 2018 16:24:02 GMT
95
+ - request:
96
+ method: post
97
+ uri: https://sqs.eu-west-1.amazonaws.com/
98
+ body:
99
+ encoding: UTF-8
100
+ string: Action=GetQueueUrl&QueueName=test_usage&Version=2012-11-05
101
+ headers:
102
+ Content-Type:
103
+ - application/x-www-form-urlencoded; charset=utf-8
104
+ Accept-Encoding:
105
+ - ''
106
+ User-Agent:
107
+ - aws-sdk-ruby3/3.24.0 ruby/2.4.2 x86_64-darwin16 aws-sdk-sqs/1.4.0
108
+ X-Amz-Date:
109
+ - 20180810T162402Z
110
+ X-Amz-Content-Sha256:
111
+ - 5761efd13dd0ed81182207171d3660628968189941431d6044920ef8fe7b1160
112
+ Authorization:
113
+ - AWS4-HMAC-SHA256 Credential=AKIAIUG4XO77LTVIG3PA/20180810/eu-west-1/sqs/aws4_request,
114
+ SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=f1ce9805a7e5b3f6fe00c4224c072306d5167ba7af14d5e9fb09b452162393e9
115
+ Content-Length:
116
+ - '58'
117
+ Accept:
118
+ - "*/*"
119
+ response:
120
+ status:
121
+ code: 200
122
+ message: OK
123
+ headers:
124
+ Server:
125
+ - Server
126
+ Date:
127
+ - Fri, 10 Aug 2018 16:24:02 GMT
128
+ Content-Type:
129
+ - text/xml
130
+ Content-Length:
131
+ - '330'
132
+ Connection:
133
+ - keep-alive
134
+ X-Amzn-Requestid:
135
+ - 8d153edf-dd65-5eef-a57c-6d386307dd1c
136
+ body:
137
+ encoding: UTF-8
138
+ string: <?xml version="1.0"?><GetQueueUrlResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/"><GetQueueUrlResult><QueueUrl>https://sqs.eu-west-1.amazonaws.com/404017989009/test_usage</QueueUrl></GetQueueUrlResult><ResponseMetadata><RequestId>8d153edf-dd65-5eef-a57c-6d386307dd1c</RequestId></ResponseMetadata></GetQueueUrlResponse>
139
+ http_version:
140
+ recorded_at: Fri, 10 Aug 2018 16:24:02 GMT
141
+ - request:
142
+ method: post
143
+ uri: "<SLACK_WEBHOOK_URL>"
144
+ body:
145
+ encoding: US-ASCII
146
+ string: payload=%7B%22username%22%3A%22Event+Data+Agent%22%2C%22icon_url%22%3A%22https%3A%2F%2Fraw.githubusercontent.com%2Fdatacite%2Ftoccatore%2Fmaster%2Flib%2Ftoccatore%2Fimages%2Ftoccatore.png%22%2C%22attachments%22%3A%5B%7B%22title%22%3A%22Report+for+usage_update%22%2C%22text%22%3A%220+works+processed+with+0+errors+for+Usage+Reports+Queue+https%3A%2F%2Fsqs.eu-west-1.amazonaws.com%2F404017989009%2Ftest_usage%22%2C%22color%22%3A%22warning%22%7D%5D%7D
147
+ headers:
148
+ Accept-Encoding:
149
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
150
+ Accept:
151
+ - "*/*"
152
+ User-Agent:
153
+ - Ruby
154
+ Content-Type:
155
+ - application/x-www-form-urlencoded
156
+ response:
157
+ status:
158
+ code: 200
159
+ message: OK
160
+ headers:
161
+ Content-Type:
162
+ - text/html
163
+ Content-Length:
164
+ - '22'
165
+ Connection:
166
+ - keep-alive
167
+ Date:
168
+ - Fri, 10 Aug 2018 16:24:02 GMT
169
+ Server:
170
+ - Apache
171
+ X-Slack-Backend:
172
+ - h
173
+ Referrer-Policy:
174
+ - no-referrer
175
+ Strict-Transport-Security:
176
+ - max-age=31536000; includeSubDomains; preload
177
+ X-Frame-Options:
178
+ - SAMEORIGIN
179
+ Vary:
180
+ - Accept-Encoding
181
+ Access-Control-Allow-Origin:
182
+ - "*"
183
+ X-Via:
184
+ - haproxy-www-w87d
185
+ X-Cache:
186
+ - Miss from cloudfront
187
+ Via:
188
+ - 1.1 bb93dfaee440e32ac88831363641e2c2.cloudfront.net (CloudFront)
189
+ X-Amz-Cf-Id:
190
+ - __pG8D8ZCQGuNms_9tqlxyboOQii57OYPJOf8B1wlvHfF72nGIDQiA==
191
+ body:
192
+ encoding: ASCII-8BIT
193
+ string: ok
194
+ http_version:
195
+ recorded_at: Fri, 10 Aug 2018 16:24:02 GMT
196
+ recorded_with: VCR 3.0.3
@@ -8,29 +8,33 @@ http_interactions:
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - Maremma - https://github.com/datacite/maremma
11
+ - Mozilla/5.0 (compatible; Maremma/4.1; +https://github.com/datacite/maremma)
12
12
  Accept:
13
13
  - text/html,application/json,application/xml;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5
14
14
  response:
15
15
  status:
16
16
  code: 200
17
- message: ''
17
+ message: OK
18
18
  headers:
19
- Access-Control-Allow-Methods:
20
- - GET, POST, OPTIONS
21
- Access-Control-Allow-Origin:
22
- - "*"
19
+ Date:
20
+ - Fri, 10 Aug 2018 17:32:56 GMT
23
21
  Content-Type:
24
22
  - application/json;charset=UTF-8
25
- Date:
26
- - Sat, 11 Mar 2017 08:27:51 GMT
27
- Server:
28
- - openresty/1.11.2.2
29
23
  Connection:
30
24
  - keep-alive
25
+ Server:
26
+ - nginx/1.10.3 (Ubuntu)
27
+ Access-Control-Allow-Origin:
28
+ - "*"
29
+ Access-Control-Allow-Methods:
30
+ - GET, POST, PUT, DELETE, OPTIONS
31
+ Access-Control-Allow-Headers:
32
+ - DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
33
+ Access-Control-Expose-Headers:
34
+ - DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range,Authorization
31
35
  body:
32
- encoding: UTF-8
33
- string: '{"responseHeader":{"status":0,"QTime":1},"response":{"numFound":1,"start":0,"docs":[{"minted":"2016-09-24T20:26:53Z","updated":"2017-02-06T14:24:31Z","doi":"10.5438/6423","relatedIdentifier":["HasPart:DOI:10.5281/ZENODO.30799","HasPart:DOI:10.5281/ZENODO.30800","HasPart:DOI:10.5281/ZENODO.31787","HasPart:DOI:10.5281/ZENODO.31932","HasPart:DOI:10.5281/ZENODO.31933","HasPart:DOI:10.5281/ZENODO.46761","HasPart:DOI:10.5281/ZENODO.48228","HasPart:DOI:10.5281/ZENODO.48705","HasPart:DOI:10.5281/ZENODO.58971","HasPart:DOI:10.5281/ZENODO.61176","HasPart:DOI:10.5281/zenodo.154592","HasPart:DOI:10.5281/zenodo.168043","HasPart:DOI:10.5281/zenodo.168181","HasPart:DOI:10.5281/zenodo.168184","HasPart:DOI:10.5281/zenodo.168187","HasPart:DOI:10.5281/zenodo.168188","HasPart:DOI:10.5281/zenodo.168190","HasPart:DOI:10.5281/zenodo.168202","HasPart:DOI:10.5281/zenodo.168213","HasPart:DOI:10.5281/zenodo.168214","HasPart:DOI:10.5438/BC11-CQW1","HasPart:DOI:10.5438/CJT2-T6DZ","HasPart:DOI:10.5438/W029-Y6W~","HasPart:DOI:10.5438/S8GF-0CK9","HasPart:DOI:10.6084/M9.FIGSHARE.4236428"],"nameIdentifier":["ORCID:0000-0001-5331-6592","ORCID:0000-0002-4259-9774","ORCID:0000-0002-8689-4935","ORCID:0000-0002-8099-7538","ORCID:0000-0002-9300-5278","ORCID:0000-0002-6137-2348","ORCID:0000-0003-2614-6676","ORCID:0000-0002-4695-7874","ORCID:0000-0003-0902-4386","ORCID:0000-0003-3096-6829","ORCID:0000-0003-3412-7192","ORCID:0000-0003-1419-2405","ORCID:0000-0003-3484-6875","ORCID:0000-0003-0183-6910","ORCID:0000-0001-5109-3700","ORCID:0000-0001-8771-7239","ORCID:0000-0001-6843-7960","ORCID:0000-0001-9623-2225","ORCID:0000-0002-1611-6935","ORCID:0000-0003-0762-2235","ORCID:0000-0002-9829-091X","ORCID:0000-0001-5952-7630","ORCID:0000-0001-5492-3212","ORCID:0000-0002-6133-2581"],"resourceTypeGeneral":"Collection"}]}}
36
+ encoding: ASCII-8BIT
37
+ string: '{"responseHeader":{"status":0,"QTime":1389},"response":{"numFound":1,"start":0,"docs":[{"minted":"2016-09-24T20:26:53Z","updated":"2017-02-06T14:24:31Z","doi":"10.5438/6423","relatedIdentifier":["HasPart:DOI:10.5281/ZENODO.30799","HasPart:DOI:10.5281/ZENODO.30800","HasPart:DOI:10.5281/ZENODO.31787","HasPart:DOI:10.5281/ZENODO.31932","HasPart:DOI:10.5281/ZENODO.31933","HasPart:DOI:10.5281/ZENODO.46761","HasPart:DOI:10.5281/ZENODO.48228","HasPart:DOI:10.5281/ZENODO.48705","HasPart:DOI:10.5281/ZENODO.58971","HasPart:DOI:10.5281/ZENODO.61176","HasPart:DOI:10.5281/zenodo.154592","HasPart:DOI:10.5281/zenodo.168043","HasPart:DOI:10.5281/zenodo.168181","HasPart:DOI:10.5281/zenodo.168184","HasPart:DOI:10.5281/zenodo.168187","HasPart:DOI:10.5281/zenodo.168188","HasPart:DOI:10.5281/zenodo.168190","HasPart:DOI:10.5281/zenodo.168202","HasPart:DOI:10.5281/zenodo.168213","HasPart:DOI:10.5281/zenodo.168214","HasPart:DOI:10.5438/BC11-CQW1","HasPart:DOI:10.5438/CJT2-T6DZ","HasPart:DOI:10.5438/W029-Y6W~","HasPart:DOI:10.5438/S8GF-0CK9","HasPart:DOI:10.6084/M9.FIGSHARE.4236428"],"resourceTypeGeneral":"Collection","nameIdentifier":["ORCID:0000-0001-5331-6592","ORCID:0000-0002-4259-9774","ORCID:0000-0002-8689-4935","ORCID:0000-0002-8099-7538","ORCID:0000-0002-9300-5278","ORCID:0000-0002-6137-2348","ORCID:0000-0003-2614-6676","ORCID:0000-0002-4695-7874","ORCID:0000-0003-0902-4386","ORCID:0000-0003-3096-6829","ORCID:0000-0003-3412-7192","ORCID:0000-0003-1419-2405","ORCID:0000-0003-3484-6875","ORCID:0000-0003-0183-6910","ORCID:0000-0001-5109-3700","ORCID:0000-0001-8771-7239","ORCID:0000-0001-6843-7960","ORCID:0000-0001-9623-2225","ORCID:0000-0002-1611-6935","ORCID:0000-0003-0762-2235","ORCID:0000-0002-9829-091X","ORCID:0000-0001-5952-7630","ORCID:0000-0001-5492-3212","ORCID:0000-0002-6133-2581"]}]}}
34
38
 
35
39
  '
36
40
  http_version: