aylien_news_api 1.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +6 -0
- data/README.md +117 -4
- data/Rakefile +2 -0
- data/aylien_news_api.gemspec +16 -27
- data/docs/Author.md +12 -1
- data/docs/Autocomplete.md +10 -0
- data/docs/Autocompletes.md +9 -0
- data/docs/Category.md +17 -3
- data/docs/CategoryLinks.md +11 -1
- data/docs/Cluster.md +29 -0
- data/docs/Clusters.md +21 -0
- data/docs/Coverages.md +16 -4
- data/docs/DefaultApi.md +1250 -1117
- data/docs/Entities.md +11 -1
- data/docs/Entity.md +16 -3
- data/docs/EntityLinks.md +9 -0
- data/docs/Error.md +16 -2
- data/docs/ErrorLinks.md +9 -0
- data/docs/Errors.md +9 -0
- data/docs/HistogramInterval.md +10 -0
- data/docs/Histograms.md +16 -3
- data/docs/Location.md +13 -2
- data/docs/Media.md +17 -3
- data/docs/Rank.md +12 -1
- data/docs/Rankings.md +9 -0
- data/docs/RelatedStories.md +14 -3
- data/docs/RepresentativeStory.md +23 -0
- data/docs/Scope.md +14 -2
- data/docs/Sentiment.md +10 -0
- data/docs/Sentiments.md +12 -2
- data/docs/ShareCount.md +10 -0
- data/docs/ShareCounts.md +12 -0
- data/docs/Source.md +27 -8
- data/docs/Stories.md +11 -2
- data/docs/Story.md +48 -16
- data/docs/StoryCluster.md +14 -1
- data/docs/StoryLinks.md +14 -2
- data/docs/StoryTranslations.md +17 -0
- data/docs/StoryTranslationsEn.md +21 -0
- data/docs/Summary.md +9 -0
- data/docs/TimeSeries.md +11 -1
- data/docs/TimeSeriesList.md +15 -3
- data/docs/Trend.md +11 -1
- data/docs/Trends.md +11 -1
- data/git_push.sh +58 -0
- data/lib/aylien_news_api.rb +11 -10
- data/lib/aylien_news_api/api/default_api.rb +2065 -1801
- data/lib/aylien_news_api/api_client.rb +129 -108
- data/lib/aylien_news_api/api_error.rb +25 -10
- data/lib/aylien_news_api/configuration.rb +69 -33
- data/lib/aylien_news_api/models/author.rb +50 -46
- data/lib/aylien_news_api/models/autocomplete.rb +36 -32
- data/lib/aylien_news_api/models/autocompletes.rb +35 -31
- data/lib/aylien_news_api/models/category.rb +63 -59
- data/lib/aylien_news_api/models/category_links.rb +47 -43
- data/lib/aylien_news_api/models/cluster.rb +255 -0
- data/lib/aylien_news_api/models/clusters.rb +219 -0
- data/lib/aylien_news_api/models/coverages.rb +60 -68
- data/lib/aylien_news_api/models/entities.rb +48 -44
- data/lib/aylien_news_api/models/entity.rb +71 -69
- data/lib/aylien_news_api/models/entity_links.rb +35 -31
- data/lib/aylien_news_api/models/error.rb +60 -56
- data/lib/aylien_news_api/models/error_links.rb +35 -31
- data/lib/aylien_news_api/models/errors.rb +35 -31
- data/lib/aylien_news_api/models/histogram_interval.rb +36 -32
- data/lib/aylien_news_api/models/histograms.rb +62 -58
- data/lib/aylien_news_api/models/location.rb +51 -47
- data/lib/aylien_news_api/models/media.rb +81 -76
- data/lib/aylien_news_api/models/rank.rb +48 -44
- data/lib/aylien_news_api/models/rankings.rb +35 -31
- data/lib/aylien_news_api/models/related_stories.rb +53 -61
- data/lib/aylien_news_api/models/representative_story.rb +227 -0
- data/lib/aylien_news_api/models/scope.rb +59 -54
- data/lib/aylien_news_api/models/sentiment.rb +41 -37
- data/lib/aylien_news_api/models/sentiments.rb +46 -44
- data/lib/aylien_news_api/models/share_count.rb +36 -32
- data/lib/aylien_news_api/models/share_counts.rb +38 -34
- data/lib/aylien_news_api/models/source.rb +95 -92
- data/lib/aylien_news_api/models/stories.rb +47 -55
- data/lib/aylien_news_api/models/story.rb +172 -154
- data/lib/aylien_news_api/models/story_cluster.rb +52 -48
- data/lib/aylien_news_api/models/story_links.rb +58 -54
- data/lib/aylien_news_api/models/story_translations.rb +197 -0
- data/lib/aylien_news_api/models/story_translations_en.rb +217 -0
- data/lib/aylien_news_api/models/summary.rb +35 -31
- data/lib/aylien_news_api/models/time_series.rb +47 -43
- data/lib/aylien_news_api/models/time_series_list.rb +56 -52
- data/lib/aylien_news_api/models/trend.rb +47 -43
- data/lib/aylien_news_api/models/trends.rb +48 -44
- data/lib/aylien_news_api/version.rb +7 -11
- data/spec/api/default_api_spec.rb +569 -533
- data/spec/api_client_spec.rb +34 -76
- data/spec/configuration_spec.rb +14 -18
- data/spec/models/author_spec.rb +15 -18
- data/spec/models/autocomplete_spec.rb +11 -14
- data/spec/models/autocompletes_spec.rb +10 -13
- data/spec/models/category_links_spec.rb +13 -16
- data/spec/models/category_spec.rb +24 -27
- data/spec/models/cluster_spec.rb +77 -0
- data/spec/models/clusters_spec.rb +53 -0
- data/spec/models/coverages_spec.rb +17 -26
- data/spec/models/entities_spec.rb +13 -16
- data/spec/models/entity_links_spec.rb +10 -13
- data/spec/models/entity_spec.rb +19 -22
- data/spec/models/error_links_spec.rb +10 -13
- data/spec/models/error_spec.rb +21 -24
- data/spec/models/errors_spec.rb +10 -13
- data/spec/models/histogram_interval_spec.rb +11 -14
- data/spec/models/histograms_spec.rb +18 -21
- data/spec/models/location_spec.rb +15 -18
- data/spec/models/media_spec.rb +29 -32
- data/spec/models/rank_spec.rb +15 -18
- data/spec/models/rankings_spec.rb +10 -13
- data/spec/models/related_stories_spec.rb +15 -24
- data/spec/models/representative_story_spec.rb +59 -0
- data/spec/models/scope_spec.rb +21 -24
- data/spec/models/sentiment_spec.rb +15 -18
- data/spec/models/sentiments_spec.rb +13 -16
- data/spec/models/share_count_spec.rb +11 -14
- data/spec/models/share_counts_spec.rb +13 -16
- data/spec/models/source_spec.rb +29 -32
- data/spec/models/stories_spec.rb +13 -22
- data/spec/models/story_cluster_spec.rb +17 -20
- data/spec/models/story_links_spec.rb +17 -20
- data/spec/models/story_spec.rb +59 -50
- data/spec/models/story_translations_en_spec.rb +53 -0
- data/spec/models/story_translations_spec.rb +41 -0
- data/spec/models/summary_spec.rb +10 -13
- data/spec/models/time_series_list_spec.rb +16 -19
- data/spec/models/time_series_spec.rb +13 -16
- data/spec/models/trend_spec.rb +13 -16
- data/spec/models/trends_spec.rb +13 -16
- data/spec/spec_helper.rb +6 -10
- metadata +68 -194
data/spec/models/story_spec.rb
CHANGED
@@ -1,17 +1,13 @@
|
|
1
1
|
=begin
|
2
|
-
|
2
|
+
#AYLIEN News API
|
3
3
|
|
4
|
-
|
5
|
-
you may not use this file except in compliance with the License.
|
6
|
-
You may obtain a copy of the License at
|
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.
|
7
5
|
|
8
|
-
|
6
|
+
The version of the OpenAPI document: 2.0
|
7
|
+
Contact: support@aylien.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
9
10
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
See the License for the specific language governing permissions and
|
14
|
-
limitations under the License.
|
15
11
|
=end
|
16
12
|
|
17
13
|
require 'spec_helper'
|
@@ -19,6 +15,8 @@ require 'json'
|
|
19
15
|
require 'date'
|
20
16
|
|
21
17
|
# Unit tests for AylienNewsApi::Story
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
22
20
|
describe 'Story' do
|
23
21
|
before do
|
24
22
|
# run before each test
|
@@ -30,129 +28,140 @@ describe 'Story' do
|
|
30
28
|
end
|
31
29
|
|
32
30
|
describe 'test an instance of Story' do
|
33
|
-
it 'should create an
|
31
|
+
it 'should create an instance of Story' do
|
34
32
|
expect(@instance).to be_instance_of(AylienNewsApi::Story)
|
35
33
|
end
|
36
34
|
end
|
37
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "author"' do
|
38
36
|
it 'should work' do
|
39
|
-
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
40
38
|
end
|
41
39
|
end
|
42
40
|
|
43
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "body"' do
|
44
42
|
it 'should work' do
|
45
|
-
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
46
44
|
end
|
47
45
|
end
|
48
46
|
|
49
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "categories"' do
|
50
48
|
it 'should work' do
|
51
|
-
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
52
50
|
end
|
53
51
|
end
|
54
52
|
|
55
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "characters_count"' do
|
56
54
|
it 'should work' do
|
57
|
-
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
56
|
end
|
59
57
|
end
|
60
58
|
|
61
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "clusters"' do
|
62
60
|
it 'should work' do
|
63
|
-
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
64
62
|
end
|
65
63
|
end
|
66
64
|
|
67
|
-
describe 'test attribute "
|
65
|
+
describe 'test attribute "entities"' do
|
68
66
|
it 'should work' do
|
69
|
-
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
70
68
|
end
|
71
69
|
end
|
72
70
|
|
73
|
-
describe 'test attribute "
|
71
|
+
describe 'test attribute "hashtags"' do
|
74
72
|
it 'should work' do
|
75
|
-
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
76
74
|
end
|
77
75
|
end
|
78
76
|
|
79
|
-
describe 'test attribute "
|
77
|
+
describe 'test attribute "id"' do
|
80
78
|
it 'should work' do
|
81
|
-
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
82
80
|
end
|
83
81
|
end
|
84
82
|
|
85
|
-
describe 'test attribute "
|
83
|
+
describe 'test attribute "keywords"' do
|
86
84
|
it 'should work' do
|
87
|
-
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
88
86
|
end
|
89
87
|
end
|
90
88
|
|
91
|
-
describe 'test attribute "
|
89
|
+
describe 'test attribute "language"' do
|
92
90
|
it 'should work' do
|
93
|
-
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
94
92
|
end
|
95
93
|
end
|
96
94
|
|
97
|
-
describe 'test attribute "
|
95
|
+
describe 'test attribute "links"' do
|
98
96
|
it 'should work' do
|
99
|
-
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
100
98
|
end
|
101
99
|
end
|
102
100
|
|
103
|
-
describe 'test attribute "
|
101
|
+
describe 'test attribute "media"' do
|
104
102
|
it 'should work' do
|
105
|
-
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
106
104
|
end
|
107
105
|
end
|
108
106
|
|
109
107
|
describe 'test attribute "paragraphs_count"' do
|
110
108
|
it 'should work' do
|
111
|
-
|
109
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
112
110
|
end
|
113
111
|
end
|
114
112
|
|
115
|
-
describe 'test attribute "
|
113
|
+
describe 'test attribute "published_at"' do
|
114
|
+
it 'should work' do
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
describe 'test attribute "sentences_count"' do
|
120
|
+
it 'should work' do
|
121
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
describe 'test attribute "sentiment"' do
|
116
126
|
it 'should work' do
|
117
|
-
|
127
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
118
128
|
end
|
119
129
|
end
|
120
130
|
|
121
131
|
describe 'test attribute "social_shares_count"' do
|
122
132
|
it 'should work' do
|
123
|
-
|
133
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
124
134
|
end
|
125
135
|
end
|
126
136
|
|
127
|
-
describe 'test attribute "
|
137
|
+
describe 'test attribute "source"' do
|
128
138
|
it 'should work' do
|
129
|
-
|
139
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
130
140
|
end
|
131
141
|
end
|
132
142
|
|
133
|
-
describe 'test attribute "
|
143
|
+
describe 'test attribute "summary"' do
|
134
144
|
it 'should work' do
|
135
|
-
|
145
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
136
146
|
end
|
137
147
|
end
|
138
148
|
|
139
|
-
describe 'test attribute "
|
149
|
+
describe 'test attribute "title"' do
|
140
150
|
it 'should work' do
|
141
|
-
|
151
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
142
152
|
end
|
143
153
|
end
|
144
154
|
|
145
|
-
describe 'test attribute "
|
155
|
+
describe 'test attribute "translations"' do
|
146
156
|
it 'should work' do
|
147
|
-
|
157
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
148
158
|
end
|
149
159
|
end
|
150
160
|
|
151
|
-
describe 'test attribute "
|
161
|
+
describe 'test attribute "words_count"' do
|
152
162
|
it 'should work' do
|
153
|
-
|
163
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
154
164
|
end
|
155
165
|
end
|
156
166
|
|
157
167
|
end
|
158
|
-
|
@@ -0,0 +1,53 @@
|
|
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: 2.0
|
7
|
+
Contact: support@aylien.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for AylienNewsApi::StoryTranslationsEn
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'StoryTranslationsEn' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = AylienNewsApi::StoryTranslationsEn.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of StoryTranslationsEn' do
|
31
|
+
it 'should create an instance of StoryTranslationsEn' do
|
32
|
+
expect(@instance).to be_instance_of(AylienNewsApi::StoryTranslationsEn)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "body"' 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 "text"' 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
|
+
describe 'test attribute "title"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
@@ -0,0 +1,41 @@
|
|
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: 2.0
|
7
|
+
Contact: support@aylien.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for AylienNewsApi::StoryTranslations
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'StoryTranslations' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = AylienNewsApi::StoryTranslations.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of StoryTranslations' do
|
31
|
+
it 'should create an instance of StoryTranslations' do
|
32
|
+
expect(@instance).to be_instance_of(AylienNewsApi::StoryTranslations)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "en"' 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
|
+
end
|
data/spec/models/summary_spec.rb
CHANGED
@@ -1,17 +1,13 @@
|
|
1
1
|
=begin
|
2
|
-
|
2
|
+
#AYLIEN News API
|
3
3
|
|
4
|
-
|
5
|
-
you may not use this file except in compliance with the License.
|
6
|
-
You may obtain a copy of the License at
|
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.
|
7
5
|
|
8
|
-
|
6
|
+
The version of the OpenAPI document: 2.0
|
7
|
+
Contact: support@aylien.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
9
10
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
See the License for the specific language governing permissions and
|
14
|
-
limitations under the License.
|
15
11
|
=end
|
16
12
|
|
17
13
|
require 'spec_helper'
|
@@ -19,6 +15,8 @@ require 'json'
|
|
19
15
|
require 'date'
|
20
16
|
|
21
17
|
# Unit tests for AylienNewsApi::Summary
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
22
20
|
describe 'Summary' do
|
23
21
|
before do
|
24
22
|
# run before each test
|
@@ -30,15 +28,14 @@ describe 'Summary' do
|
|
30
28
|
end
|
31
29
|
|
32
30
|
describe 'test an instance of Summary' do
|
33
|
-
it 'should create an
|
31
|
+
it 'should create an instance of Summary' do
|
34
32
|
expect(@instance).to be_instance_of(AylienNewsApi::Summary)
|
35
33
|
end
|
36
34
|
end
|
37
35
|
describe 'test attribute "sentences"' do
|
38
36
|
it 'should work' do
|
39
|
-
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
40
38
|
end
|
41
39
|
end
|
42
40
|
|
43
41
|
end
|
44
|
-
|
@@ -1,17 +1,13 @@
|
|
1
1
|
=begin
|
2
|
-
|
2
|
+
#AYLIEN News API
|
3
3
|
|
4
|
-
|
5
|
-
you may not use this file except in compliance with the License.
|
6
|
-
You may obtain a copy of the License at
|
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.
|
7
5
|
|
8
|
-
|
6
|
+
The version of the OpenAPI document: 2.0
|
7
|
+
Contact: support@aylien.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
9
10
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
See the License for the specific language governing permissions and
|
14
|
-
limitations under the License.
|
15
11
|
=end
|
16
12
|
|
17
13
|
require 'spec_helper'
|
@@ -19,6 +15,8 @@ require 'json'
|
|
19
15
|
require 'date'
|
20
16
|
|
21
17
|
# Unit tests for AylienNewsApi::TimeSeriesList
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
22
20
|
describe 'TimeSeriesList' do
|
23
21
|
before do
|
24
22
|
# run before each test
|
@@ -30,33 +28,32 @@ describe 'TimeSeriesList' do
|
|
30
28
|
end
|
31
29
|
|
32
30
|
describe 'test an instance of TimeSeriesList' do
|
33
|
-
it 'should create an
|
31
|
+
it 'should create an instance of TimeSeriesList' do
|
34
32
|
expect(@instance).to be_instance_of(AylienNewsApi::TimeSeriesList)
|
35
33
|
end
|
36
34
|
end
|
37
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "period"' do
|
38
36
|
it 'should work' do
|
39
|
-
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
40
38
|
end
|
41
39
|
end
|
42
40
|
|
43
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "published_at_end"' do
|
44
42
|
it 'should work' do
|
45
|
-
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
46
44
|
end
|
47
45
|
end
|
48
46
|
|
49
47
|
describe 'test attribute "published_at_start"' do
|
50
48
|
it 'should work' do
|
51
|
-
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
52
50
|
end
|
53
51
|
end
|
54
52
|
|
55
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "time_series"' do
|
56
54
|
it 'should work' do
|
57
|
-
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
56
|
end
|
59
57
|
end
|
60
58
|
|
61
59
|
end
|
62
|
-
|
@@ -1,17 +1,13 @@
|
|
1
1
|
=begin
|
2
|
-
|
2
|
+
#AYLIEN News API
|
3
3
|
|
4
|
-
|
5
|
-
you may not use this file except in compliance with the License.
|
6
|
-
You may obtain a copy of the License at
|
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.
|
7
5
|
|
8
|
-
|
6
|
+
The version of the OpenAPI document: 2.0
|
7
|
+
Contact: support@aylien.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
9
10
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
-
See the License for the specific language governing permissions and
|
14
|
-
limitations under the License.
|
15
11
|
=end
|
16
12
|
|
17
13
|
require 'spec_helper'
|
@@ -19,6 +15,8 @@ require 'json'
|
|
19
15
|
require 'date'
|
20
16
|
|
21
17
|
# Unit tests for AylienNewsApi::TimeSeries
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
22
20
|
describe 'TimeSeries' do
|
23
21
|
before do
|
24
22
|
# run before each test
|
@@ -30,21 +28,20 @@ describe 'TimeSeries' do
|
|
30
28
|
end
|
31
29
|
|
32
30
|
describe 'test an instance of TimeSeries' do
|
33
|
-
it 'should create an
|
31
|
+
it 'should create an instance of TimeSeries' do
|
34
32
|
expect(@instance).to be_instance_of(AylienNewsApi::TimeSeries)
|
35
33
|
end
|
36
34
|
end
|
37
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "count"' do
|
38
36
|
it 'should work' do
|
39
|
-
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
40
38
|
end
|
41
39
|
end
|
42
40
|
|
43
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "published_at"' do
|
44
42
|
it 'should work' do
|
45
|
-
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
46
44
|
end
|
47
45
|
end
|
48
46
|
|
49
47
|
end
|
50
|
-
|