aylien_news_api 1.0.0 → 3.0.0
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.
- 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/api_client_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'
|
@@ -55,119 +51,81 @@ describe AylienNewsApi::ApiClient do
|
|
55
51
|
end
|
56
52
|
end
|
57
53
|
|
58
|
-
describe
|
59
|
-
let(:config) { AylienNewsApi::Configuration.new }
|
60
|
-
let(:api_client) { AylienNewsApi::ApiClient.new(config) }
|
61
|
-
|
62
|
-
it "defaults to multi" do
|
63
|
-
expect(AylienNewsApi::Configuration.default.params_encoding).to eq(:multi)
|
64
|
-
expect(config.params_encoding).to eq(:multi)
|
65
|
-
|
66
|
-
request = api_client.build_request(:get, '/test')
|
67
|
-
expect(request.options[:params_encoding]).to eq(:multi)
|
68
|
-
end
|
69
|
-
|
70
|
-
it "can be customized" do
|
71
|
-
config.params_encoding = :multi
|
72
|
-
request = api_client.build_request(:get, '/test')
|
73
|
-
expect(request.options[:params_encoding]).to eq(:multi)
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
describe "timeout in #build_request" do
|
78
|
-
let(:config) { AylienNewsApi::Configuration.new }
|
79
|
-
let(:api_client) { AylienNewsApi::ApiClient.new(config) }
|
80
|
-
|
81
|
-
it "defaults to 0" do
|
82
|
-
expect(AylienNewsApi::Configuration.default.timeout).to eq(0)
|
83
|
-
expect(config.timeout).to eq(0)
|
84
|
-
|
85
|
-
request = api_client.build_request(:get, '/test')
|
86
|
-
expect(request.options[:timeout]).to eq(0)
|
87
|
-
end
|
88
|
-
|
89
|
-
it "can be customized" do
|
90
|
-
config.timeout = 100
|
91
|
-
request = api_client.build_request(:get, '/test')
|
92
|
-
expect(request.options[:timeout]).to eq(100)
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
describe "#deserialize" do
|
54
|
+
describe '#deserialize' do
|
97
55
|
it "handles Array<Integer>" do
|
98
56
|
api_client = AylienNewsApi::ApiClient.new
|
99
|
-
headers = {'Content-Type' => 'application/json'}
|
57
|
+
headers = { 'Content-Type' => 'application/json' }
|
100
58
|
response = double('response', headers: headers, body: '[12, 34]')
|
101
59
|
data = api_client.deserialize(response, 'Array<Integer>')
|
102
60
|
expect(data).to be_instance_of(Array)
|
103
61
|
expect(data).to eq([12, 34])
|
104
62
|
end
|
105
63
|
|
106
|
-
it
|
64
|
+
it 'handles Array<Array<Integer>>' do
|
107
65
|
api_client = AylienNewsApi::ApiClient.new
|
108
|
-
headers = {'Content-Type' => 'application/json'}
|
66
|
+
headers = { 'Content-Type' => 'application/json' }
|
109
67
|
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
110
68
|
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
111
69
|
expect(data).to be_instance_of(Array)
|
112
70
|
expect(data).to eq([[12, 34], [56]])
|
113
71
|
end
|
114
72
|
|
115
|
-
it
|
73
|
+
it 'handles Hash<String, String>' do
|
116
74
|
api_client = AylienNewsApi::ApiClient.new
|
117
|
-
headers = {'Content-Type' => 'application/json'}
|
75
|
+
headers = { 'Content-Type' => 'application/json' }
|
118
76
|
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
119
77
|
data = api_client.deserialize(response, 'Hash<String, String>')
|
120
78
|
expect(data).to be_instance_of(Hash)
|
121
|
-
expect(data).to eq(
|
79
|
+
expect(data).to eq(:message => 'Hello')
|
122
80
|
end
|
123
81
|
end
|
124
82
|
|
125
83
|
describe "#object_to_hash" do
|
126
|
-
it
|
84
|
+
it 'ignores nils and includes empty arrays' do
|
127
85
|
# uncomment below to test object_to_hash for model
|
128
|
-
#api_client = AylienNewsApi::ApiClient.new
|
129
|
-
#_model = AylienNewsApi::ModelName.new
|
86
|
+
# api_client = AylienNewsApi::ApiClient.new
|
87
|
+
# _model = AylienNewsApi::ModelName.new
|
130
88
|
# update the model attribute below
|
131
|
-
#_model.id = 1
|
89
|
+
# _model.id = 1
|
132
90
|
# update the expected value (hash) below
|
133
|
-
#expected = {id: 1, name: '', tags: []}
|
134
|
-
#expect(api_client.object_to_hash(_model)).to eq(expected)
|
91
|
+
# expected = {id: 1, name: '', tags: []}
|
92
|
+
# expect(api_client.object_to_hash(_model)).to eq(expected)
|
135
93
|
end
|
136
94
|
end
|
137
95
|
|
138
|
-
describe
|
96
|
+
describe '#build_collection_param' do
|
139
97
|
let(:param) { ['aa', 'bb', 'cc'] }
|
140
98
|
let(:api_client) { AylienNewsApi::ApiClient.new }
|
141
99
|
|
142
|
-
it
|
100
|
+
it 'works for csv' do
|
143
101
|
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
144
102
|
end
|
145
103
|
|
146
|
-
it
|
104
|
+
it 'works for ssv' do
|
147
105
|
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
148
106
|
end
|
149
107
|
|
150
|
-
it
|
108
|
+
it 'works for tsv' do
|
151
109
|
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
152
110
|
end
|
153
111
|
|
154
|
-
it
|
112
|
+
it 'works for pipes' do
|
155
113
|
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
156
114
|
end
|
157
115
|
|
158
|
-
it
|
116
|
+
it 'works for multi' do
|
159
117
|
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
160
118
|
end
|
161
119
|
|
162
|
-
it
|
120
|
+
it 'fails for invalid collection format' do
|
163
121
|
expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
164
122
|
end
|
165
123
|
end
|
166
124
|
|
167
|
-
describe
|
125
|
+
describe '#json_mime?' do
|
168
126
|
let(:api_client) { AylienNewsApi::ApiClient.new }
|
169
127
|
|
170
|
-
it
|
128
|
+
it 'works' do
|
171
129
|
expect(api_client.json_mime?(nil)).to eq false
|
172
130
|
expect(api_client.json_mime?('')).to eq false
|
173
131
|
|
@@ -181,10 +139,10 @@ describe AylienNewsApi::ApiClient do
|
|
181
139
|
end
|
182
140
|
end
|
183
141
|
|
184
|
-
describe
|
142
|
+
describe '#select_header_accept' do
|
185
143
|
let(:api_client) { AylienNewsApi::ApiClient.new }
|
186
144
|
|
187
|
-
it
|
145
|
+
it 'works' do
|
188
146
|
expect(api_client.select_header_accept(nil)).to be_nil
|
189
147
|
expect(api_client.select_header_accept([])).to be_nil
|
190
148
|
|
@@ -197,10 +155,10 @@ describe AylienNewsApi::ApiClient do
|
|
197
155
|
end
|
198
156
|
end
|
199
157
|
|
200
|
-
describe
|
158
|
+
describe '#select_header_content_type' do
|
201
159
|
let(:api_client) { AylienNewsApi::ApiClient.new }
|
202
160
|
|
203
|
-
it
|
161
|
+
it 'works' do
|
204
162
|
expect(api_client.select_header_content_type(nil)).to eq('application/json')
|
205
163
|
expect(api_client.select_header_content_type([])).to eq('application/json')
|
206
164
|
|
@@ -212,10 +170,10 @@ describe AylienNewsApi::ApiClient do
|
|
212
170
|
end
|
213
171
|
end
|
214
172
|
|
215
|
-
describe
|
173
|
+
describe '#sanitize_filename' do
|
216
174
|
let(:api_client) { AylienNewsApi::ApiClient.new }
|
217
175
|
|
218
|
-
it
|
176
|
+
it 'works' do
|
219
177
|
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
220
178
|
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
221
179
|
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
data/spec/configuration_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'
|
@@ -21,25 +17,25 @@ describe AylienNewsApi::Configuration do
|
|
21
17
|
|
22
18
|
before(:each) do
|
23
19
|
# uncomment below to setup host and base_path
|
24
|
-
#require 'URI'
|
25
|
-
#uri = URI.parse("https://api.
|
26
|
-
#AylienNewsApi.configure do |c|
|
27
|
-
#
|
28
|
-
#
|
29
|
-
#end
|
20
|
+
# require 'URI'
|
21
|
+
# uri = URI.parse("https://api.aylien.com/news")
|
22
|
+
# AylienNewsApi.configure do |c|
|
23
|
+
# c.host = uri.host
|
24
|
+
# c.base_path = uri.path
|
25
|
+
# end
|
30
26
|
end
|
31
27
|
|
32
28
|
describe '#base_url' do
|
33
29
|
it 'should have the default value' do
|
34
30
|
# uncomment below to test default value of the base path
|
35
|
-
#expect(config.base_url).to eq("https://api.
|
31
|
+
# expect(config.base_url).to eq("https://api.aylien.com/news")
|
36
32
|
end
|
37
33
|
|
38
34
|
it 'should remove trailing slashes' do
|
39
35
|
[nil, '', '/', '//'].each do |base_path|
|
40
36
|
config.base_path = base_path
|
41
37
|
# uncomment below to test trailing slashes
|
42
|
-
#expect(config.base_url).to eq("https://api.
|
38
|
+
# expect(config.base_url).to eq("https://api.aylien.com/news")
|
43
39
|
end
|
44
40
|
end
|
45
41
|
end
|
data/spec/models/author_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::Author
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
22
20
|
describe 'Author' do
|
23
21
|
before do
|
24
22
|
# run before each test
|
@@ -30,27 +28,26 @@ describe 'Author' do
|
|
30
28
|
end
|
31
29
|
|
32
30
|
describe 'test an instance of Author' do
|
33
|
-
it 'should create an
|
31
|
+
it 'should create an instance of Author' do
|
34
32
|
expect(@instance).to be_instance_of(AylienNewsApi::Author)
|
35
33
|
end
|
36
34
|
end
|
37
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "avatar_url"' 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 "id"' 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 "name"' 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
53
|
end
|
56
|
-
|
@@ -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::Autocomplete
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
22
20
|
describe 'Autocomplete' do
|
23
21
|
before do
|
24
22
|
# run before each test
|
@@ -30,21 +28,20 @@ describe 'Autocomplete' do
|
|
30
28
|
end
|
31
29
|
|
32
30
|
describe 'test an instance of Autocomplete' do
|
33
|
-
it 'should create an
|
31
|
+
it 'should create an instance of Autocomplete' do
|
34
32
|
expect(@instance).to be_instance_of(AylienNewsApi::Autocomplete)
|
35
33
|
end
|
36
34
|
end
|
37
35
|
describe 'test attribute "id"' 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
|
describe 'test attribute "text"' 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
|
-
|
@@ -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::Autocompletes
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
22
20
|
describe 'Autocompletes' do
|
23
21
|
before do
|
24
22
|
# run before each test
|
@@ -30,15 +28,14 @@ describe 'Autocompletes' do
|
|
30
28
|
end
|
31
29
|
|
32
30
|
describe 'test an instance of Autocompletes' do
|
33
|
-
it 'should create an
|
31
|
+
it 'should create an instance of Autocompletes' do
|
34
32
|
expect(@instance).to be_instance_of(AylienNewsApi::Autocompletes)
|
35
33
|
end
|
36
34
|
end
|
37
35
|
describe 'test attribute "autocompletes"' 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::CategoryLinks
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
22
20
|
describe 'CategoryLinks' do
|
23
21
|
before do
|
24
22
|
# run before each test
|
@@ -30,21 +28,20 @@ describe 'CategoryLinks' do
|
|
30
28
|
end
|
31
29
|
|
32
30
|
describe 'test an instance of CategoryLinks' do
|
33
|
-
it 'should create an
|
31
|
+
it 'should create an instance of CategoryLinks' do
|
34
32
|
expect(@instance).to be_instance_of(AylienNewsApi::CategoryLinks)
|
35
33
|
end
|
36
34
|
end
|
37
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "parent"' 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 "_self"' 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
|
-
|