metatron_ruby_client 0.0.1
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 +7 -0
- data/README.md +140 -0
- data/config.json +13 -0
- data/docs/Asset.md +9 -0
- data/docs/AssetAttributes.md +8 -0
- data/docs/AssetData.md +10 -0
- data/docs/AssetMeta.md +8 -0
- data/docs/AssetResultSet.md +10 -0
- data/docs/AssetResultSetMeta.md +8 -0
- data/docs/DefaultApi.md +631 -0
- data/docs/Error.md +10 -0
- data/docs/Errors.md +8 -0
- data/docs/Item.md +9 -0
- data/docs/ItemData.md +8 -0
- data/docs/ItemResultSet.md +10 -0
- data/docs/Links.md +10 -0
- data/docs/Manifestation.md +9 -0
- data/docs/ManifestationAttributes.md +11 -0
- data/docs/ManifestationData.md +11 -0
- data/docs/ManifestationRelationships.md +10 -0
- data/docs/ManifestationResultSet.md +10 -0
- data/docs/Meta.md +10 -0
- data/docs/OneToManyRelationship.md +10 -0
- data/docs/OneToOneRelationship.md +10 -0
- data/docs/Resource.md +10 -0
- data/docs/ResourceData.md +11 -0
- data/docs/ResourceLink.md +9 -0
- data/docs/ResultSetMeta.md +10 -0
- data/docs/Work.md +9 -0
- data/docs/WorkAttributes.md +8 -0
- data/docs/WorkData.md +11 -0
- data/docs/WorkRelationships.md +8 -0
- data/docs/WorkResultSet.md +11 -0
- data/generate.sh +0 -0
- data/git_push.sh +52 -0
- data/lib/metatron_ruby_client/api/default_api.rb +727 -0
- data/lib/metatron_ruby_client/api_client.rb +361 -0
- data/lib/metatron_ruby_client/api_error.rb +34 -0
- data/lib/metatron_ruby_client/configuration.rb +170 -0
- data/lib/metatron_ruby_client/models/asset.rb +195 -0
- data/lib/metatron_ruby_client/models/asset_attributes.rb +212 -0
- data/lib/metatron_ruby_client/models/asset_data.rb +208 -0
- data/lib/metatron_ruby_client/models/asset_meta.rb +198 -0
- data/lib/metatron_ruby_client/models/asset_result_set.rb +202 -0
- data/lib/metatron_ruby_client/models/asset_result_set_meta.rb +196 -0
- data/lib/metatron_ruby_client/models/error.rb +208 -0
- data/lib/metatron_ruby_client/models/errors.rb +184 -0
- data/lib/metatron_ruby_client/models/item.rb +197 -0
- data/lib/metatron_ruby_client/models/item_data.rb +186 -0
- data/lib/metatron_ruby_client/models/item_result_set.rb +206 -0
- data/lib/metatron_ruby_client/models/links.rb +204 -0
- data/lib/metatron_ruby_client/models/manifestation.rb +197 -0
- data/lib/metatron_ruby_client/models/manifestation_attributes.rb +209 -0
- data/lib/metatron_ruby_client/models/manifestation_data.rb +235 -0
- data/lib/metatron_ruby_client/models/manifestation_relationships.rb +200 -0
- data/lib/metatron_ruby_client/models/manifestation_result_set.rb +214 -0
- data/lib/metatron_ruby_client/models/meta.rb +260 -0
- data/lib/metatron_ruby_client/models/one_to_many_relationship.rb +206 -0
- data/lib/metatron_ruby_client/models/one_to_one_relationship.rb +204 -0
- data/lib/metatron_ruby_client/models/resource.rb +281 -0
- data/lib/metatron_ruby_client/models/resource_data.rb +221 -0
- data/lib/metatron_ruby_client/models/resource_link.rb +199 -0
- data/lib/metatron_ruby_client/models/result_set_meta.rb +203 -0
- data/lib/metatron_ruby_client/models/work.rb +197 -0
- data/lib/metatron_ruby_client/models/work_attributes.rb +186 -0
- data/lib/metatron_ruby_client/models/work_data.rb +235 -0
- data/lib/metatron_ruby_client/models/work_relationships.rb +182 -0
- data/lib/metatron_ruby_client/models/work_result_set.rb +213 -0
- data/lib/metatron_ruby_client/version.rb +13 -0
- data/lib/metatron_ruby_client.rb +60 -0
- data/metatron_ruby_client.gemspec +31 -0
- data/spec/api/default_api_spec.rb +218 -0
- data/spec/models/asset_attributes_spec.rb +46 -0
- data/spec/models/asset_data_spec.rb +66 -0
- data/spec/models/asset_meta_spec.rb +46 -0
- data/spec/models/asset_result_set_spec.rb +66 -0
- data/spec/models/asset_spec.rb +56 -0
- data/spec/models/error_spec.rb +66 -0
- data/spec/models/errors_spec.rb +46 -0
- data/spec/models/item_data_spec.rb +46 -0
- data/spec/models/item_result_set_spec.rb +66 -0
- data/spec/models/item_spec.rb +56 -0
- data/spec/models/links_spec.rb +66 -0
- data/spec/models/manifestation_attributes_spec.rb +76 -0
- data/spec/models/manifestation_data_spec.rb +76 -0
- data/spec/models/manifestation_relationships_spec.rb +66 -0
- data/spec/models/manifestation_result_set_spec.rb +66 -0
- data/spec/models/manifestation_spec.rb +56 -0
- data/spec/models/meta_spec.rb +66 -0
- data/spec/models/one_to_many_relationship_spec.rb +66 -0
- data/spec/models/one_to_one_relationship_spec.rb +66 -0
- data/spec/models/resource_data_spec.rb +76 -0
- data/spec/models/resource_link_spec.rb +56 -0
- data/spec/models/resource_spec.rb +66 -0
- data/spec/models/result_set_meta_spec.rb +66 -0
- data/spec/models/work_attributes_spec.rb +46 -0
- data/spec/models/work_data_spec.rb +76 -0
- data/spec/models/work_relationships_spec.rb +46 -0
- data/spec/models/work_result_set_spec.rb +76 -0
- data/spec/models/work_spec.rb +56 -0
- data/stub-service/.swagger-codegen-ignore +23 -0
- data/stub-service/Gemfile +4 -0
- data/stub-service/Gemfile.lock +22 -0
- data/stub-service/LICENSE +201 -0
- data/stub-service/README.md +29 -0
- data/stub-service/api/default_api.rb +370 -0
- data/stub-service/config.ru +2 -0
- data/stub-service/lib/result_set.rb +37 -0
- data/stub-service/lib/swaggering.rb +163 -0
- data/stub-service/my_app.rb +13 -0
- data/stub-service/responses/works/includes/manifestations.assets.yaml +42 -0
- data/stub-service/responses/works/includes/manifestations.yaml +88 -0
- data/stub-service/responses/works/result_set.yaml +18 -0
- data/stub-service/swagger.yaml +756 -0
- data/swagger-codegen-cli.jar +0 -0
- metadata +369 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
Metatron Server
|
|
3
|
+
|
|
4
|
+
A primitive modelling bibliographic metadata
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for MetatronClient::DefaultApi
|
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'DefaultApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@instance = MetatronClient::DefaultApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of DefaultApi' do
|
|
30
|
+
it 'should create an instact of DefaultApi' do
|
|
31
|
+
@instance.should be_a(MetatronClient::DefaultApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for add_manifestation_asset
|
|
36
|
+
#
|
|
37
|
+
# Add an asset to the relevant manifestation
|
|
38
|
+
# @param manifestation_id
|
|
39
|
+
# @param body node
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @return [Asset]
|
|
42
|
+
describe 'add_manifestation_asset test' do
|
|
43
|
+
it "should work" do
|
|
44
|
+
# assertion here
|
|
45
|
+
# should be_a()
|
|
46
|
+
# should be_nil
|
|
47
|
+
# should ==
|
|
48
|
+
# should_not ==
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# unit tests for get_holdings
|
|
53
|
+
# Get local holdings for a given manifestation
|
|
54
|
+
#
|
|
55
|
+
# @param manifestation_id
|
|
56
|
+
# @param tenant_code
|
|
57
|
+
# @param [Hash] opts the optional parameters
|
|
58
|
+
# @return [ItemResultSet]
|
|
59
|
+
describe 'get_holdings test' do
|
|
60
|
+
it "should work" do
|
|
61
|
+
# assertion here
|
|
62
|
+
# should be_a()
|
|
63
|
+
# should be_nil
|
|
64
|
+
# should ==
|
|
65
|
+
# should_not ==
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# unit tests for get_manifestation
|
|
70
|
+
# Get a specific Manifestation from the dataset
|
|
71
|
+
#
|
|
72
|
+
# @param manifestation_id
|
|
73
|
+
# @param [Hash] opts the optional parameters
|
|
74
|
+
# @return [nil]
|
|
75
|
+
describe 'get_manifestation test' do
|
|
76
|
+
it "should work" do
|
|
77
|
+
# assertion here
|
|
78
|
+
# should be_a()
|
|
79
|
+
# should be_nil
|
|
80
|
+
# should ==
|
|
81
|
+
# should_not ==
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# unit tests for get_manifestation_assets
|
|
86
|
+
# Get a set of Assets that are associated with a specific Manifestation
|
|
87
|
+
#
|
|
88
|
+
# @param manifestation_id
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [AssetResultSet]
|
|
91
|
+
describe 'get_manifestation_assets test' do
|
|
92
|
+
it "should work" do
|
|
93
|
+
# assertion here
|
|
94
|
+
# should be_a()
|
|
95
|
+
# should be_nil
|
|
96
|
+
# should ==
|
|
97
|
+
# should_not ==
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# unit tests for get_manifestation_works
|
|
102
|
+
# Get a set of Works relating to a given Manifestation. Usually there will be one current work, but due to previous titles there might be more than one Work.
|
|
103
|
+
#
|
|
104
|
+
# @param manifestation_id
|
|
105
|
+
# @param [Hash] opts the optional parameters
|
|
106
|
+
# @return [nil]
|
|
107
|
+
describe 'get_manifestation_works test' do
|
|
108
|
+
it "should work" do
|
|
109
|
+
# assertion here
|
|
110
|
+
# should be_a()
|
|
111
|
+
# should be_nil
|
|
112
|
+
# should ==
|
|
113
|
+
# should_not ==
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# unit tests for get_work
|
|
118
|
+
# Get a set of Works that are similar to a specific Work
|
|
119
|
+
#
|
|
120
|
+
# @param work_id
|
|
121
|
+
# @param [Hash] opts the optional parameters
|
|
122
|
+
# @return [WorkResultSet]
|
|
123
|
+
describe 'get_work test' do
|
|
124
|
+
it "should work" do
|
|
125
|
+
# assertion here
|
|
126
|
+
# should be_a()
|
|
127
|
+
# should be_nil
|
|
128
|
+
# should ==
|
|
129
|
+
# should_not ==
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# unit tests for get_work_assets
|
|
134
|
+
# Get a set of Assets that are associated with a specific Work
|
|
135
|
+
#
|
|
136
|
+
# @param work_id
|
|
137
|
+
# @param [Hash] opts the optional parameters
|
|
138
|
+
# @return [AssetResultSet]
|
|
139
|
+
describe 'get_work_assets test' do
|
|
140
|
+
it "should work" do
|
|
141
|
+
# assertion here
|
|
142
|
+
# should be_a()
|
|
143
|
+
# should be_nil
|
|
144
|
+
# should ==
|
|
145
|
+
# should_not ==
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# unit tests for get_work_manifestations
|
|
150
|
+
# Get a set of Manifestations that encompass a specific Work
|
|
151
|
+
#
|
|
152
|
+
# @param work_id
|
|
153
|
+
# @param [Hash] opts the optional parameters
|
|
154
|
+
# @return [nil]
|
|
155
|
+
describe 'get_work_manifestations test' do
|
|
156
|
+
it "should work" do
|
|
157
|
+
# assertion here
|
|
158
|
+
# should be_a()
|
|
159
|
+
# should be_nil
|
|
160
|
+
# should ==
|
|
161
|
+
# should_not ==
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# unit tests for manifestation
|
|
166
|
+
#
|
|
167
|
+
# Get the manifestation set best matching the given bibliographic data
|
|
168
|
+
# @param [Hash] opts the optional parameters
|
|
169
|
+
# @option opts [String] :isbn The isbn
|
|
170
|
+
# @option opts [String] :work_id The ID of a work
|
|
171
|
+
# @return [ManifestationResultSet]
|
|
172
|
+
describe 'manifestation test' do
|
|
173
|
+
it "should work" do
|
|
174
|
+
# assertion here
|
|
175
|
+
# should be_a()
|
|
176
|
+
# should be_nil
|
|
177
|
+
# should ==
|
|
178
|
+
# should_not ==
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# unit tests for remove_asset
|
|
183
|
+
#
|
|
184
|
+
# Remove an asset
|
|
185
|
+
# @param asset_id
|
|
186
|
+
# @param asset_type
|
|
187
|
+
# @param [Hash] opts the optional parameters
|
|
188
|
+
# @return [nil]
|
|
189
|
+
describe 'remove_asset test' do
|
|
190
|
+
it "should work" do
|
|
191
|
+
# assertion here
|
|
192
|
+
# should be_a()
|
|
193
|
+
# should be_nil
|
|
194
|
+
# should ==
|
|
195
|
+
# should_not ==
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# unit tests for work
|
|
200
|
+
# Get the work best matching the given bibliographic data
|
|
201
|
+
#
|
|
202
|
+
# @param q Search works for the supplied term
|
|
203
|
+
# @param limit Limit the results to n results
|
|
204
|
+
# @param offset Offset the results to position n
|
|
205
|
+
# @param [Hash] opts the optional parameters
|
|
206
|
+
# @option opts [Array<String>] :include Define which relationships to include, comma separated
|
|
207
|
+
# @return [WorkResultSet]
|
|
208
|
+
describe 'work test' do
|
|
209
|
+
it "should work" do
|
|
210
|
+
# assertion here
|
|
211
|
+
# should be_a()
|
|
212
|
+
# should be_nil
|
|
213
|
+
# should ==
|
|
214
|
+
# should_not ==
|
|
215
|
+
end
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
Metatron Server
|
|
3
|
+
|
|
4
|
+
A primitive modelling bibliographic metadata
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for MetatronClient::AssetAttributes
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'AssetAttributes' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = MetatronClient::AssetAttributes.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of AssetAttributes' do
|
|
31
|
+
it 'should create an instact of AssetAttributes' do
|
|
32
|
+
@instance.should be_a(MetatronClient::AssetAttributes)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "asset_type"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here
|
|
38
|
+
# should be_a()
|
|
39
|
+
# should be_nil
|
|
40
|
+
# should ==
|
|
41
|
+
# should_not ==
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
end
|
|
46
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
Metatron Server
|
|
3
|
+
|
|
4
|
+
A primitive modelling bibliographic metadata
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for MetatronClient::AssetData
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'AssetData' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = MetatronClient::AssetData.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of AssetData' do
|
|
31
|
+
it 'should create an instact of AssetData' do
|
|
32
|
+
@instance.should be_a(MetatronClient::AssetData)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "id"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here
|
|
38
|
+
# should be_a()
|
|
39
|
+
# should be_nil
|
|
40
|
+
# should ==
|
|
41
|
+
# should_not ==
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
describe 'test attribute "type"' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here
|
|
48
|
+
# should be_a()
|
|
49
|
+
# should be_nil
|
|
50
|
+
# should ==
|
|
51
|
+
# should_not ==
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
describe 'test attribute "attributes"' do
|
|
56
|
+
it 'should work' do
|
|
57
|
+
# assertion here
|
|
58
|
+
# should be_a()
|
|
59
|
+
# should be_nil
|
|
60
|
+
# should ==
|
|
61
|
+
# should_not ==
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
end
|
|
66
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
Metatron Server
|
|
3
|
+
|
|
4
|
+
A primitive modelling bibliographic metadata
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for MetatronClient::AssetMeta
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'AssetMeta' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = MetatronClient::AssetMeta.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of AssetMeta' do
|
|
31
|
+
it 'should create an instact of AssetMeta' do
|
|
32
|
+
@instance.should be_a(MetatronClient::AssetMeta)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "super_type"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here
|
|
38
|
+
# should be_a()
|
|
39
|
+
# should be_nil
|
|
40
|
+
# should ==
|
|
41
|
+
# should_not ==
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
end
|
|
46
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
Metatron Server
|
|
3
|
+
|
|
4
|
+
A primitive modelling bibliographic metadata
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for MetatronClient::AssetResultSet
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'AssetResultSet' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = MetatronClient::AssetResultSet.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of AssetResultSet' do
|
|
31
|
+
it 'should create an instact of AssetResultSet' do
|
|
32
|
+
@instance.should be_a(MetatronClient::AssetResultSet)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "links"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here
|
|
38
|
+
# should be_a()
|
|
39
|
+
# should be_nil
|
|
40
|
+
# should ==
|
|
41
|
+
# should_not ==
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
describe 'test attribute "meta"' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here
|
|
48
|
+
# should be_a()
|
|
49
|
+
# should be_nil
|
|
50
|
+
# should ==
|
|
51
|
+
# should_not ==
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
describe 'test attribute "data"' do
|
|
56
|
+
it 'should work' do
|
|
57
|
+
# assertion here
|
|
58
|
+
# should be_a()
|
|
59
|
+
# should be_nil
|
|
60
|
+
# should ==
|
|
61
|
+
# should_not ==
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
end
|
|
66
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
Metatron Server
|
|
3
|
+
|
|
4
|
+
A primitive modelling bibliographic metadata
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for MetatronClient::Asset
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'Asset' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = MetatronClient::Asset.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of Asset' do
|
|
31
|
+
it 'should create an instact of Asset' do
|
|
32
|
+
@instance.should be_a(MetatronClient::Asset)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "meta"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here
|
|
38
|
+
# should be_a()
|
|
39
|
+
# should be_nil
|
|
40
|
+
# should ==
|
|
41
|
+
# should_not ==
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
describe 'test attribute "data"' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here
|
|
48
|
+
# should be_a()
|
|
49
|
+
# should be_nil
|
|
50
|
+
# should ==
|
|
51
|
+
# should_not ==
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
end
|
|
56
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
Metatron Server
|
|
3
|
+
|
|
4
|
+
A primitive modelling bibliographic metadata
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for MetatronClient::Error
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'Error' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = MetatronClient::Error.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of Error' do
|
|
31
|
+
it 'should create an instact of Error' do
|
|
32
|
+
@instance.should be_a(MetatronClient::Error)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "status"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here
|
|
38
|
+
# should be_a()
|
|
39
|
+
# should be_nil
|
|
40
|
+
# should ==
|
|
41
|
+
# should_not ==
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
describe 'test attribute "title"' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here
|
|
48
|
+
# should be_a()
|
|
49
|
+
# should be_nil
|
|
50
|
+
# should ==
|
|
51
|
+
# should_not ==
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
describe 'test attribute "detail"' do
|
|
56
|
+
it 'should work' do
|
|
57
|
+
# assertion here
|
|
58
|
+
# should be_a()
|
|
59
|
+
# should be_nil
|
|
60
|
+
# should ==
|
|
61
|
+
# should_not ==
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
end
|
|
66
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
Metatron Server
|
|
3
|
+
|
|
4
|
+
A primitive modelling bibliographic metadata
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for MetatronClient::Errors
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'Errors' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = MetatronClient::Errors.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of Errors' do
|
|
31
|
+
it 'should create an instact of Errors' do
|
|
32
|
+
@instance.should be_a(MetatronClient::Errors)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "errors"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here
|
|
38
|
+
# should be_a()
|
|
39
|
+
# should be_nil
|
|
40
|
+
# should ==
|
|
41
|
+
# should_not ==
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
end
|
|
46
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
Metatron Server
|
|
3
|
+
|
|
4
|
+
A primitive modelling bibliographic metadata
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 2.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for MetatronClient::ItemData
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'ItemData' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = MetatronClient::ItemData.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of ItemData' do
|
|
31
|
+
it 'should create an instact of ItemData' do
|
|
32
|
+
@instance.should be_a(MetatronClient::ItemData)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "id"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here
|
|
38
|
+
# should be_a()
|
|
39
|
+
# should be_nil
|
|
40
|
+
# should ==
|
|
41
|
+
# should_not ==
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
end
|
|
46
|
+
|