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,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::ItemResultSet
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'ItemResultSet' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = MetatronClient::ItemResultSet.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of ItemResultSet' do
|
|
31
|
+
it 'should create an instact of ItemResultSet' do
|
|
32
|
+
@instance.should be_a(MetatronClient::ItemResultSet)
|
|
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::Item
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'Item' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = MetatronClient::Item.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of Item' do
|
|
31
|
+
it 'should create an instact of Item' do
|
|
32
|
+
@instance.should be_a(MetatronClient::Item)
|
|
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 "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::Links
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'Links' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = MetatronClient::Links.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of Links' do
|
|
31
|
+
it 'should create an instact of Links' do
|
|
32
|
+
@instance.should be_a(MetatronClient::Links)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "_self"' 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 "_next"' 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 "previous"' 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,76 @@
|
|
|
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::ManifestationAttributes
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'ManifestationAttributes' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = MetatronClient::ManifestationAttributes.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of ManifestationAttributes' do
|
|
31
|
+
it 'should create an instact of ManifestationAttributes' do
|
|
32
|
+
@instance.should be_a(MetatronClient::ManifestationAttributes)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "format"' 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 "identifiers"' 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 "place_of_publication"' 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
|
+
describe 'test attribute "publishing_status"' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here
|
|
68
|
+
# should be_a()
|
|
69
|
+
# should be_nil
|
|
70
|
+
# should ==
|
|
71
|
+
# should_not ==
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
end
|
|
76
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
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::ManifestationData
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'ManifestationData' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = MetatronClient::ManifestationData.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of ManifestationData' do
|
|
31
|
+
it 'should create an instact of ManifestationData' do
|
|
32
|
+
@instance.should be_a(MetatronClient::ManifestationData)
|
|
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
|
+
describe 'test attribute "relationships"' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here
|
|
68
|
+
# should be_a()
|
|
69
|
+
# should be_nil
|
|
70
|
+
# should ==
|
|
71
|
+
# should_not ==
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
end
|
|
76
|
+
|
|
@@ -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::ManifestationRelationships
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'ManifestationRelationships' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = MetatronClient::ManifestationRelationships.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of ManifestationRelationships' do
|
|
31
|
+
it 'should create an instact of ManifestationRelationships' do
|
|
32
|
+
@instance.should be_a(MetatronClient::ManifestationRelationships)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "contributors"' 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 "assets"' 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 "work"' 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,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::ManifestationResultSet
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'ManifestationResultSet' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = MetatronClient::ManifestationResultSet.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of ManifestationResultSet' do
|
|
31
|
+
it 'should create an instact of ManifestationResultSet' do
|
|
32
|
+
@instance.should be_a(MetatronClient::ManifestationResultSet)
|
|
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::Manifestation
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'Manifestation' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = MetatronClient::Manifestation.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of Manifestation' do
|
|
31
|
+
it 'should create an instact of Manifestation' do
|
|
32
|
+
@instance.should be_a(MetatronClient::Manifestation)
|
|
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 "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::Meta
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'Meta' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = MetatronClient::Meta.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of Meta' do
|
|
31
|
+
it 'should create an instact of Meta' do
|
|
32
|
+
@instance.should be_a(MetatronClient::Meta)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "offset"' 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 "limit"' 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 "count"' 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,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::OneToManyRelationship
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'OneToManyRelationship' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = MetatronClient::OneToManyRelationship.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of OneToManyRelationship' do
|
|
31
|
+
it 'should create an instact of OneToManyRelationship' do
|
|
32
|
+
@instance.should be_a(MetatronClient::OneToManyRelationship)
|
|
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 "links"' 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
|
+
|