aylien_news_api 0.2.0 → 4.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 +7 -1
- data/README.md +36 -47
- data/Rakefile +10 -0
- data/aylien_news_api.gemspec +25 -32
- data/docs/Author.md +12 -1
- data/docs/Autocomplete.md +10 -0
- data/docs/Autocompletes.md +9 -0
- data/docs/Category.md +19 -3
- data/docs/CategoryLinks.md +11 -1
- data/docs/CategoryTaxonomy.md +16 -0
- data/docs/Cluster.md +29 -0
- data/docs/Clusters.md +21 -0
- data/docs/Coverages.md +16 -4
- data/docs/DefaultApi.md +1310 -576
- 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 +20 -3
- data/docs/Location.md +13 -2
- data/docs/Media.md +19 -1
- data/docs/MediaFormat.md +16 -0
- data/docs/MediaType.md +16 -0
- data/docs/Rank.md +21 -0
- data/docs/Rankings.md +17 -0
- data/docs/RelatedStories.md +14 -3
- data/docs/RepresentativeStory.md +23 -0
- data/docs/Scope.md +15 -3
- data/docs/ScopeLevel.md +16 -0
- data/docs/Sentiment.md +11 -1
- data/docs/SentimentPolarity.md +16 -0
- data/docs/Sentiments.md +12 -2
- data/docs/ShareCount.md +10 -0
- data/docs/ShareCounts.md +12 -0
- data/docs/Source.md +27 -3
- data/docs/Stories.md +15 -2
- data/docs/Story.md +48 -16
- data/docs/StoryCluster.md +14 -1
- data/docs/StoryLinks.md +14 -1
- data/docs/StoryTranslation.md +19 -0
- 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 +15 -1
- data/git_push.sh +58 -0
- data/lib/aylien_news_api.rb +23 -14
- data/lib/aylien_news_api/api/default_api.rb +2755 -892
- data/lib/aylien_news_api/api_client.rb +141 -102
- data/lib/aylien_news_api/api_error.rb +37 -18
- data/lib/aylien_news_api/configuration.rb +94 -43
- data/lib/aylien_news_api/models/author.rb +69 -53
- data/lib/aylien_news_api/models/autocomplete.rb +55 -39
- data/lib/aylien_news_api/models/autocompletes.rb +54 -38
- data/lib/aylien_news_api/models/category.rb +88 -97
- data/lib/aylien_news_api/models/category_links.rb +66 -50
- data/lib/aylien_news_api/models/category_taxonomy.rb +36 -0
- data/lib/aylien_news_api/models/cluster.rb +265 -0
- data/lib/aylien_news_api/models/clusters.rb +229 -0
- data/lib/aylien_news_api/models/coverages.rb +79 -75
- data/lib/aylien_news_api/models/entities.rb +67 -51
- data/lib/aylien_news_api/models/entity.rb +100 -81
- data/lib/aylien_news_api/models/entity_links.rb +54 -38
- data/lib/aylien_news_api/models/error.rb +79 -63
- data/lib/aylien_news_api/models/error_links.rb +54 -38
- data/lib/aylien_news_api/models/errors.rb +54 -38
- data/lib/aylien_news_api/models/histogram_interval.rb +55 -39
- data/lib/aylien_news_api/models/histograms.rb +99 -63
- data/lib/aylien_news_api/models/location.rb +70 -54
- data/lib/aylien_news_api/models/media.rb +97 -76
- data/lib/aylien_news_api/models/media_format.rb +44 -0
- data/lib/aylien_news_api/models/media_type.rb +36 -0
- data/lib/aylien_news_api/models/rank.rb +227 -0
- data/lib/aylien_news_api/models/rankings.rb +208 -0
- data/lib/aylien_news_api/models/related_stories.rb +72 -68
- data/lib/aylien_news_api/models/representative_story.rb +237 -0
- data/lib/aylien_news_api/models/scope.rb +76 -94
- data/lib/aylien_news_api/models/scope_level.rb +37 -0
- data/lib/aylien_news_api/models/sentiment.rb +70 -84
- data/lib/aylien_news_api/models/sentiment_polarity.rb +37 -0
- data/lib/aylien_news_api/models/sentiments.rb +65 -51
- data/lib/aylien_news_api/models/share_count.rb +55 -39
- data/lib/aylien_news_api/models/share_counts.rb +57 -41
- data/lib/aylien_news_api/models/source.rb +129 -64
- data/lib/aylien_news_api/models/stories.rb +79 -55
- data/lib/aylien_news_api/models/story.rb +191 -161
- data/lib/aylien_news_api/models/story_cluster.rb +71 -55
- data/lib/aylien_news_api/models/story_links.rb +73 -47
- data/lib/aylien_news_api/models/story_translation.rb +217 -0
- data/lib/aylien_news_api/models/story_translations.rb +207 -0
- data/lib/aylien_news_api/models/story_translations_en.rb +227 -0
- data/lib/aylien_news_api/models/summary.rb +54 -38
- data/lib/aylien_news_api/models/time_series.rb +66 -50
- data/lib/aylien_news_api/models/time_series_list.rb +75 -59
- data/lib/aylien_news_api/models/trend.rb +66 -50
- data/lib/aylien_news_api/models/trends.rb +80 -44
- data/lib/aylien_news_api/version.rb +12 -14
- data/spec/api/default_api_spec.rb +620 -284
- data/spec/api_client_spec.rb +43 -161
- data/spec/configuration_spec.rb +22 -19
- data/spec/models/author_spec.rb +21 -34
- data/spec/models/autocomplete_spec.rb +17 -26
- data/spec/models/autocompletes_spec.rb +16 -21
- data/spec/models/category_links_spec.rb +19 -28
- data/spec/models/category_spec.rb +31 -50
- data/spec/models/category_taxonomy_spec.rb +35 -0
- data/spec/models/cluster_spec.rb +77 -0
- data/spec/models/clusters_spec.rb +53 -0
- data/spec/models/coverages_spec.rb +24 -45
- data/spec/models/entities_spec.rb +19 -28
- data/spec/models/entity_links_spec.rb +16 -21
- data/spec/models/entity_spec.rb +25 -46
- data/spec/models/error_links_spec.rb +16 -21
- data/spec/models/error_spec.rb +27 -52
- data/spec/models/errors_spec.rb +16 -21
- data/spec/models/histogram_interval_spec.rb +17 -26
- data/spec/models/histograms_spec.rb +36 -45
- data/spec/models/location_spec.rb +21 -34
- data/spec/models/media_format_spec.rb +35 -0
- data/spec/models/media_spec.rb +41 -26
- data/spec/models/media_type_spec.rb +35 -0
- data/spec/models/rank_spec.rb +53 -0
- data/spec/models/rankings_spec.rb +41 -0
- data/spec/models/related_stories_spec.rb +21 -38
- data/spec/models/representative_story_spec.rb +59 -0
- data/spec/models/scope_level_spec.rb +35 -0
- data/spec/models/scope_spec.rb +23 -40
- data/spec/models/sentiment_polarity_spec.rb +35 -0
- data/spec/models/sentiment_spec.rb +17 -26
- data/spec/models/sentiments_spec.rb +19 -28
- data/spec/models/share_count_spec.rb +17 -26
- data/spec/models/share_counts_spec.rb +19 -36
- data/spec/models/source_spec.rb +54 -49
- data/spec/models/stories_spec.rb +26 -33
- data/spec/models/story_cluster_spec.rb +23 -44
- data/spec/models/story_links_spec.rb +25 -32
- data/spec/models/story_spec.rb +65 -134
- data/spec/models/story_translation_spec.rb +47 -0
- 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 +16 -21
- data/spec/models/time_series_list_spec.rb +22 -39
- data/spec/models/time_series_spec.rb +19 -28
- data/spec/models/trend_spec.rb +19 -28
- data/spec/models/trends_spec.rb +30 -27
- data/spec/spec_helper.rb +11 -13
- metadata +95 -193
- data/Gemfile.lock +0 -65
- data/LICENSE +0 -13
@@ -1,22 +1,22 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
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
|
14
12
|
|
15
13
|
require 'spec_helper'
|
16
14
|
require 'json'
|
17
15
|
require 'date'
|
18
16
|
|
19
17
|
# Unit tests for AylienNewsApi::StoryLinks
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
20
|
describe 'StoryLinks' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
@@ -28,39 +28,32 @@ describe 'StoryLinks' do
|
|
28
28
|
end
|
29
29
|
|
30
30
|
describe 'test an instance of StoryLinks' do
|
31
|
-
it 'should create an
|
32
|
-
@instance.
|
31
|
+
it 'should create an instance of StoryLinks' do
|
32
|
+
expect(@instance).to be_instance_of(AylienNewsApi::StoryLinks)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "canonical"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
33
38
|
end
|
34
39
|
end
|
40
|
+
|
35
41
|
describe 'test attribute "permalink"' do
|
36
42
|
it 'should work' do
|
37
|
-
|
38
|
-
# should be_a()
|
39
|
-
# should be_nil
|
40
|
-
# should ==
|
41
|
-
# should_not ==
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
44
|
end
|
43
45
|
end
|
44
46
|
|
45
47
|
describe 'test attribute "related_stories"' do
|
46
48
|
it 'should work' do
|
47
|
-
|
48
|
-
# should be_a()
|
49
|
-
# should be_nil
|
50
|
-
# should ==
|
51
|
-
# should_not ==
|
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 "clusters"' do
|
56
54
|
it 'should work' do
|
57
|
-
|
58
|
-
# should be_a()
|
59
|
-
# should be_nil
|
60
|
-
# should ==
|
61
|
-
# should_not ==
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
56
|
end
|
63
57
|
end
|
64
58
|
|
65
59
|
end
|
66
|
-
|
data/spec/models/story_spec.rb
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
|
4
|
-
#
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
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
|
14
12
|
|
15
13
|
require 'spec_helper'
|
16
14
|
require 'json'
|
17
15
|
require 'date'
|
18
16
|
|
19
17
|
# Unit tests for AylienNewsApi::Story
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
20
|
describe 'Story' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
@@ -28,209 +28,140 @@ describe 'Story' do
|
|
28
28
|
end
|
29
29
|
|
30
30
|
describe 'test an instance of Story' do
|
31
|
-
it 'should create an
|
32
|
-
@instance.
|
31
|
+
it 'should create an instance of Story' do
|
32
|
+
expect(@instance).to be_instance_of(AylienNewsApi::Story)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "author"' do
|
36
36
|
it 'should work' do
|
37
|
-
|
38
|
-
# should be_a()
|
39
|
-
# should be_nil
|
40
|
-
# should ==
|
41
|
-
# should_not ==
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
38
|
end
|
43
39
|
end
|
44
40
|
|
45
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "body"' do
|
46
42
|
it 'should work' do
|
47
|
-
|
48
|
-
# should be_a()
|
49
|
-
# should be_nil
|
50
|
-
# should ==
|
51
|
-
# should_not ==
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
52
44
|
end
|
53
45
|
end
|
54
46
|
|
55
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "categories"' do
|
56
48
|
it 'should work' do
|
57
|
-
|
58
|
-
# should be_a()
|
59
|
-
# should be_nil
|
60
|
-
# should ==
|
61
|
-
# should_not ==
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
50
|
end
|
63
51
|
end
|
64
52
|
|
65
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "characters_count"' do
|
66
54
|
it 'should work' do
|
67
|
-
|
68
|
-
# should be_a()
|
69
|
-
# should be_nil
|
70
|
-
# should ==
|
71
|
-
# should_not ==
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
56
|
end
|
73
57
|
end
|
74
58
|
|
75
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "clusters"' do
|
76
60
|
it 'should work' do
|
77
|
-
|
78
|
-
# should be_a()
|
79
|
-
# should be_nil
|
80
|
-
# should ==
|
81
|
-
# should_not ==
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
82
62
|
end
|
83
63
|
end
|
84
64
|
|
85
|
-
describe 'test attribute "
|
65
|
+
describe 'test attribute "entities"' do
|
86
66
|
it 'should work' do
|
87
|
-
|
88
|
-
# should be_a()
|
89
|
-
# should be_nil
|
90
|
-
# should ==
|
91
|
-
# should_not ==
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
68
|
end
|
93
69
|
end
|
94
70
|
|
95
|
-
describe 'test attribute "
|
71
|
+
describe 'test attribute "hashtags"' do
|
96
72
|
it 'should work' do
|
97
|
-
|
98
|
-
# should be_a()
|
99
|
-
# should be_nil
|
100
|
-
# should ==
|
101
|
-
# should_not ==
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
102
74
|
end
|
103
75
|
end
|
104
76
|
|
105
|
-
describe 'test attribute "
|
77
|
+
describe 'test attribute "id"' do
|
106
78
|
it 'should work' do
|
107
|
-
|
108
|
-
# should be_a()
|
109
|
-
# should be_nil
|
110
|
-
# should ==
|
111
|
-
# should_not ==
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
112
80
|
end
|
113
81
|
end
|
114
82
|
|
115
|
-
describe 'test attribute "
|
83
|
+
describe 'test attribute "keywords"' do
|
116
84
|
it 'should work' do
|
117
|
-
|
118
|
-
# should be_a()
|
119
|
-
# should be_nil
|
120
|
-
# should ==
|
121
|
-
# should_not ==
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
122
86
|
end
|
123
87
|
end
|
124
88
|
|
125
|
-
describe 'test attribute "
|
89
|
+
describe 'test attribute "language"' do
|
126
90
|
it 'should work' do
|
127
|
-
|
128
|
-
# should be_a()
|
129
|
-
# should be_nil
|
130
|
-
# should ==
|
131
|
-
# should_not ==
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
132
92
|
end
|
133
93
|
end
|
134
94
|
|
135
|
-
describe 'test attribute "
|
95
|
+
describe 'test attribute "links"' do
|
136
96
|
it 'should work' do
|
137
|
-
|
138
|
-
# should be_a()
|
139
|
-
# should be_nil
|
140
|
-
# should ==
|
141
|
-
# should_not ==
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
142
98
|
end
|
143
99
|
end
|
144
100
|
|
145
|
-
describe 'test attribute "
|
101
|
+
describe 'test attribute "media"' do
|
146
102
|
it 'should work' do
|
147
|
-
|
148
|
-
# should be_a()
|
149
|
-
# should be_nil
|
150
|
-
# should ==
|
151
|
-
# should_not ==
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
152
104
|
end
|
153
105
|
end
|
154
106
|
|
155
107
|
describe 'test attribute "paragraphs_count"' do
|
156
108
|
it 'should work' do
|
157
|
-
|
158
|
-
# should be_a()
|
159
|
-
# should be_nil
|
160
|
-
# should ==
|
161
|
-
# should_not ==
|
109
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
162
110
|
end
|
163
111
|
end
|
164
112
|
|
165
|
-
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
|
166
126
|
it 'should work' do
|
167
|
-
|
168
|
-
# should be_a()
|
169
|
-
# should be_nil
|
170
|
-
# should ==
|
171
|
-
# should_not ==
|
127
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
172
128
|
end
|
173
129
|
end
|
174
130
|
|
175
131
|
describe 'test attribute "social_shares_count"' do
|
176
132
|
it 'should work' do
|
177
|
-
|
178
|
-
# should be_a()
|
179
|
-
# should be_nil
|
180
|
-
# should ==
|
181
|
-
# should_not ==
|
133
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
182
134
|
end
|
183
135
|
end
|
184
136
|
|
185
|
-
describe 'test attribute "
|
137
|
+
describe 'test attribute "source"' do
|
186
138
|
it 'should work' do
|
187
|
-
|
188
|
-
# should be_a()
|
189
|
-
# should be_nil
|
190
|
-
# should ==
|
191
|
-
# should_not ==
|
139
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
192
140
|
end
|
193
141
|
end
|
194
142
|
|
195
|
-
describe 'test attribute "
|
143
|
+
describe 'test attribute "summary"' do
|
196
144
|
it 'should work' do
|
197
|
-
|
198
|
-
# should be_a()
|
199
|
-
# should be_nil
|
200
|
-
# should ==
|
201
|
-
# should_not ==
|
145
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
202
146
|
end
|
203
147
|
end
|
204
148
|
|
205
|
-
describe 'test attribute "
|
149
|
+
describe 'test attribute "title"' do
|
206
150
|
it 'should work' do
|
207
|
-
|
208
|
-
# should be_a()
|
209
|
-
# should be_nil
|
210
|
-
# should ==
|
211
|
-
# should_not ==
|
151
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
212
152
|
end
|
213
153
|
end
|
214
154
|
|
215
|
-
describe 'test attribute "
|
155
|
+
describe 'test attribute "translations"' do
|
216
156
|
it 'should work' do
|
217
|
-
|
218
|
-
# should be_a()
|
219
|
-
# should be_nil
|
220
|
-
# should ==
|
221
|
-
# should_not ==
|
157
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
222
158
|
end
|
223
159
|
end
|
224
160
|
|
225
|
-
describe 'test attribute "
|
161
|
+
describe 'test attribute "words_count"' do
|
226
162
|
it 'should work' do
|
227
|
-
|
228
|
-
# should be_a()
|
229
|
-
# should be_nil
|
230
|
-
# should ==
|
231
|
-
# should_not ==
|
163
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
232
164
|
end
|
233
165
|
end
|
234
166
|
|
235
167
|
end
|
236
|
-
|
@@ -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::StoryTranslation
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'StoryTranslation' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = AylienNewsApi::StoryTranslation.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of StoryTranslation' do
|
31
|
+
it 'should create an instance of StoryTranslation' do
|
32
|
+
expect(@instance).to be_instance_of(AylienNewsApi::StoryTranslation)
|
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 "title"' 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,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: 3.0
|
7
|
+
Contact: support@aylien.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.1-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
|