aylien_news_api 4.4.0 → 4.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +100 -31
- data/docs/DefaultApi.md +320 -188
- data/docs/DeprecatedEntities.md +19 -0
- data/docs/DeprecatedEntity.md +33 -0
- data/docs/DeprecatedEntitySurfaceForm.md +21 -0
- data/docs/DeprecatedRelatedStories.md +27 -0
- data/docs/DeprecatedStories.md +25 -0
- data/docs/DeprecatedStory.md +61 -0
- data/docs/Entity.md +12 -12
- data/docs/EntityInText.md +19 -0
- data/docs/EntityMention.md +19 -0
- data/docs/EntityMentionIndex.md +19 -0
- data/docs/EntitySurfaceForm.md +3 -3
- data/docs/Story.md +1 -1
- data/lib/aylien_news_api.rb +9 -1
- data/lib/aylien_news_api/api/default_api.rb +397 -199
- data/lib/aylien_news_api/models/deprecated_entities.rb +221 -0
- data/lib/aylien_news_api/models/deprecated_entity.rb +314 -0
- data/lib/aylien_news_api/models/deprecated_entity_surface_form.rb +244 -0
- data/lib/aylien_news_api/models/deprecated_related_stories.rb +260 -0
- data/lib/aylien_news_api/models/deprecated_stories.rb +252 -0
- data/lib/aylien_news_api/models/deprecated_story.rb +429 -0
- data/lib/aylien_news_api/models/entity.rb +76 -64
- data/lib/aylien_news_api/models/entity_in_text.rb +217 -0
- data/lib/aylien_news_api/models/entity_mention.rb +215 -0
- data/lib/aylien_news_api/models/entity_mention_index.rb +265 -0
- data/lib/aylien_news_api/models/entity_surface_form.rb +16 -16
- data/lib/aylien_news_api/models/related_stories.rb +1 -0
- data/lib/aylien_news_api/models/stories.rb +1 -0
- data/lib/aylien_news_api/models/story.rb +5 -2
- data/lib/aylien_news_api/version.rb +1 -1
- data/spec/api/default_api_spec.rb +172 -94
- data/spec/models/deprecated_entities_spec.rb +47 -0
- data/spec/models/deprecated_entity_spec.rb +89 -0
- data/spec/models/deprecated_entity_surface_form_spec.rb +53 -0
- data/spec/models/deprecated_related_stories_spec.rb +71 -0
- data/spec/models/deprecated_stories_spec.rb +65 -0
- data/spec/models/deprecated_story_spec.rb +173 -0
- data/spec/models/entity_in_text_spec.rb +47 -0
- data/spec/models/entity_mention_index_spec.rb +47 -0
- data/spec/models/entity_mention_spec.rb +47 -0
- data/spec/models/entity_spec.rb +8 -8
- data/spec/models/entity_surface_form_spec.rb +2 -2
- metadata +38 -2
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#AYLIEN News API
|
3
|
+
|
4
|
+
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 3.0
|
7
|
+
Contact: support@aylien.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for AylienNewsApi::EntityInText
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'EntityInText' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = AylienNewsApi::EntityInText.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of EntityInText' do
|
31
|
+
it 'should create an instance of EntityInText' do
|
32
|
+
expect(@instance).to be_instance_of(AylienNewsApi::EntityInText)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "sentiment"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "surface_forms"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#AYLIEN News API
|
3
|
+
|
4
|
+
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 3.0
|
7
|
+
Contact: support@aylien.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for AylienNewsApi::EntityMentionIndex
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'EntityMentionIndex' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = AylienNewsApi::EntityMentionIndex.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of EntityMentionIndex' do
|
31
|
+
it 'should create an instance of EntityMentionIndex' do
|
32
|
+
expect(@instance).to be_instance_of(AylienNewsApi::EntityMentionIndex)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "start"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "_end"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#AYLIEN News API
|
3
|
+
|
4
|
+
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 3.0
|
7
|
+
Contact: support@aylien.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for AylienNewsApi::EntityMention
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'EntityMention' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = AylienNewsApi::EntityMention.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of EntityMention' do
|
31
|
+
it 'should create an instance of EntityMention' do
|
32
|
+
expect(@instance).to be_instance_of(AylienNewsApi::EntityMention)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "index"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "sentiment"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
data/spec/models/entity_spec.rb
CHANGED
@@ -38,49 +38,49 @@ describe 'Entity' do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "links"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "stock_tickers"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "types"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "overall_sentiment"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
-
describe 'test attribute "
|
65
|
+
describe 'test attribute "overall_prominence"' do
|
66
66
|
it 'should work' do
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
describe 'test attribute "
|
71
|
+
describe 'test attribute "overall_frequency"' do
|
72
72
|
it 'should work' do
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
-
describe 'test attribute "
|
77
|
+
describe 'test attribute "body"' do
|
78
78
|
it 'should work' do
|
79
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
83
|
-
describe 'test attribute "
|
83
|
+
describe 'test attribute "title"' do
|
84
84
|
it 'should work' do
|
85
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
86
|
end
|
@@ -38,13 +38,13 @@ describe 'EntitySurfaceForm' do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "frequency"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "mentions"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aylien_news_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AYLIEN
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -67,9 +67,18 @@ files:
|
|
67
67
|
- docs/Clusters.md
|
68
68
|
- docs/Coverages.md
|
69
69
|
- docs/DefaultApi.md
|
70
|
+
- docs/DeprecatedEntities.md
|
71
|
+
- docs/DeprecatedEntity.md
|
72
|
+
- docs/DeprecatedEntitySurfaceForm.md
|
73
|
+
- docs/DeprecatedRelatedStories.md
|
74
|
+
- docs/DeprecatedStories.md
|
75
|
+
- docs/DeprecatedStory.md
|
70
76
|
- docs/Entities.md
|
71
77
|
- docs/Entity.md
|
78
|
+
- docs/EntityInText.md
|
72
79
|
- docs/EntityLinks.md
|
80
|
+
- docs/EntityMention.md
|
81
|
+
- docs/EntityMentionIndex.md
|
73
82
|
- docs/EntitySentiment.md
|
74
83
|
- docs/EntitySurfaceForm.md
|
75
84
|
- docs/Error.md
|
@@ -126,9 +135,18 @@ files:
|
|
126
135
|
- lib/aylien_news_api/models/cluster.rb
|
127
136
|
- lib/aylien_news_api/models/clusters.rb
|
128
137
|
- lib/aylien_news_api/models/coverages.rb
|
138
|
+
- lib/aylien_news_api/models/deprecated_entities.rb
|
139
|
+
- lib/aylien_news_api/models/deprecated_entity.rb
|
140
|
+
- lib/aylien_news_api/models/deprecated_entity_surface_form.rb
|
141
|
+
- lib/aylien_news_api/models/deprecated_related_stories.rb
|
142
|
+
- lib/aylien_news_api/models/deprecated_stories.rb
|
143
|
+
- lib/aylien_news_api/models/deprecated_story.rb
|
129
144
|
- lib/aylien_news_api/models/entities.rb
|
130
145
|
- lib/aylien_news_api/models/entity.rb
|
146
|
+
- lib/aylien_news_api/models/entity_in_text.rb
|
131
147
|
- lib/aylien_news_api/models/entity_links.rb
|
148
|
+
- lib/aylien_news_api/models/entity_mention.rb
|
149
|
+
- lib/aylien_news_api/models/entity_mention_index.rb
|
132
150
|
- lib/aylien_news_api/models/entity_sentiment.rb
|
133
151
|
- lib/aylien_news_api/models/entity_surface_form.rb
|
134
152
|
- lib/aylien_news_api/models/error.rb
|
@@ -183,8 +201,17 @@ files:
|
|
183
201
|
- spec/models/cluster_spec.rb
|
184
202
|
- spec/models/clusters_spec.rb
|
185
203
|
- spec/models/coverages_spec.rb
|
204
|
+
- spec/models/deprecated_entities_spec.rb
|
205
|
+
- spec/models/deprecated_entity_spec.rb
|
206
|
+
- spec/models/deprecated_entity_surface_form_spec.rb
|
207
|
+
- spec/models/deprecated_related_stories_spec.rb
|
208
|
+
- spec/models/deprecated_stories_spec.rb
|
209
|
+
- spec/models/deprecated_story_spec.rb
|
186
210
|
- spec/models/entities_spec.rb
|
211
|
+
- spec/models/entity_in_text_spec.rb
|
187
212
|
- spec/models/entity_links_spec.rb
|
213
|
+
- spec/models/entity_mention_index_spec.rb
|
214
|
+
- spec/models/entity_mention_spec.rb
|
188
215
|
- spec/models/entity_sentiment_spec.rb
|
189
216
|
- spec/models/entity_spec.rb
|
190
217
|
- spec/models/entity_surface_form_spec.rb
|
@@ -258,6 +285,7 @@ test_files:
|
|
258
285
|
- spec/models/error_spec.rb
|
259
286
|
- spec/models/representative_story_spec.rb
|
260
287
|
- spec/models/rank_spec.rb
|
288
|
+
- spec/models/deprecated_story_spec.rb
|
261
289
|
- spec/models/logicals_spec.rb
|
262
290
|
- spec/models/trends_spec.rb
|
263
291
|
- spec/models/summary_spec.rb
|
@@ -266,6 +294,7 @@ test_files:
|
|
266
294
|
- spec/models/media_spec.rb
|
267
295
|
- spec/models/entity_surface_form_spec.rb
|
268
296
|
- spec/models/trend_spec.rb
|
297
|
+
- spec/models/deprecated_entities_spec.rb
|
269
298
|
- spec/models/error_links_spec.rb
|
270
299
|
- spec/models/story_links_spec.rb
|
271
300
|
- spec/models/autocomplete_spec.rb
|
@@ -278,6 +307,7 @@ test_files:
|
|
278
307
|
- spec/models/entity_spec.rb
|
279
308
|
- spec/models/clusters_spec.rb
|
280
309
|
- spec/models/rankings_spec.rb
|
310
|
+
- spec/models/deprecated_stories_spec.rb
|
281
311
|
- spec/models/category_taxonomy_spec.rb
|
282
312
|
- spec/models/time_series_list_spec.rb
|
283
313
|
- spec/models/warning_spec.rb
|
@@ -287,17 +317,22 @@ test_files:
|
|
287
317
|
- spec/models/source_spec.rb
|
288
318
|
- spec/models/story_translations_spec.rb
|
289
319
|
- spec/models/related_stories_spec.rb
|
320
|
+
- spec/models/entity_in_text_spec.rb
|
321
|
+
- spec/models/entity_mention_index_spec.rb
|
290
322
|
- spec/models/parameter_spec.rb
|
291
323
|
- spec/models/sentiments_spec.rb
|
292
324
|
- spec/models/autocompletes_spec.rb
|
293
325
|
- spec/models/story_cluster_spec.rb
|
326
|
+
- spec/models/entity_mention_spec.rb
|
294
327
|
- spec/models/story_spec.rb
|
295
328
|
- spec/models/aggregated_sentiment_spec.rb
|
296
329
|
- spec/models/sentiment_spec.rb
|
297
330
|
- spec/models/time_series_spec.rb
|
298
331
|
- spec/models/share_count_spec.rb
|
299
332
|
- spec/models/entity_sentiment_spec.rb
|
333
|
+
- spec/models/deprecated_related_stories_spec.rb
|
300
334
|
- spec/models/media_type_spec.rb
|
335
|
+
- spec/models/deprecated_entity_spec.rb
|
301
336
|
- spec/models/errors_spec.rb
|
302
337
|
- spec/models/query_spec.rb
|
303
338
|
- spec/models/category_links_spec.rb
|
@@ -306,6 +341,7 @@ test_files:
|
|
306
341
|
- spec/models/scope_level_spec.rb
|
307
342
|
- spec/models/author_spec.rb
|
308
343
|
- spec/models/entity_links_spec.rb
|
344
|
+
- spec/models/deprecated_entity_surface_form_spec.rb
|
309
345
|
- spec/models/scope_spec.rb
|
310
346
|
- spec/models/cluster_spec.rb
|
311
347
|
- spec/spec_helper.rb
|