metatron_ruby_client 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- 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::OneToOneRelationship
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'OneToOneRelationship' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = MetatronClient::OneToOneRelationship.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of OneToOneRelationship' do
|
31
|
+
it 'should create an instact of OneToOneRelationship' do
|
32
|
+
@instance.should be_a(MetatronClient::OneToOneRelationship)
|
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
|
+
|
@@ -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::ResourceData
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'ResourceData' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = MetatronClient::ResourceData.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of ResourceData' do
|
31
|
+
it 'should create an instact of ResourceData' do
|
32
|
+
@instance.should be_a(MetatronClient::ResourceData)
|
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,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::ResourceLink
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'ResourceLink' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = MetatronClient::ResourceLink.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of ResourceLink' do
|
31
|
+
it 'should create an instact of ResourceLink' do
|
32
|
+
@instance.should be_a(MetatronClient::ResourceLink)
|
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
|
+
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::Resource
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Resource' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = MetatronClient::Resource.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Resource' do
|
31
|
+
it 'should create an instact of Resource' do
|
32
|
+
@instance.should be_a(MetatronClient::Resource)
|
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,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::ResultSetMeta
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'ResultSetMeta' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = MetatronClient::ResultSetMeta.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of ResultSetMeta' do
|
31
|
+
it 'should create an instact of ResultSetMeta' do
|
32
|
+
@instance.should be_a(MetatronClient::ResultSetMeta)
|
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,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::WorkAttributes
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'WorkAttributes' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = MetatronClient::WorkAttributes.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of WorkAttributes' do
|
31
|
+
it 'should create an instact of WorkAttributes' do
|
32
|
+
@instance.should be_a(MetatronClient::WorkAttributes)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "title"' 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,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::WorkData
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'WorkData' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = MetatronClient::WorkData.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of WorkData' do
|
31
|
+
it 'should create an instact of WorkData' do
|
32
|
+
@instance.should be_a(MetatronClient::WorkData)
|
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,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::WorkRelationships
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'WorkRelationships' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = MetatronClient::WorkRelationships.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of WorkRelationships' do
|
31
|
+
it 'should create an instact of WorkRelationships' do
|
32
|
+
@instance.should be_a(MetatronClient::WorkRelationships)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "manifestations"' 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,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::WorkResultSet
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'WorkResultSet' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = MetatronClient::WorkResultSet.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of WorkResultSet' do
|
31
|
+
it 'should create an instact of WorkResultSet' do
|
32
|
+
@instance.should be_a(MetatronClient::WorkResultSet)
|
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
|
+
describe 'test attribute "included"' 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,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::Work
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Work' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = MetatronClient::Work.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Work' do
|
31
|
+
it 'should create an instact of Work' do
|
32
|
+
@instance.should be_a(MetatronClient::Work)
|
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,23 @@
|
|
1
|
+
# Swagger Codegen Ignore
|
2
|
+
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
|
3
|
+
|
4
|
+
# Use this file to prevent files from being overwritten by the generator.
|
5
|
+
# The patterns follow closely to .gitignore or .dockerignore.
|
6
|
+
|
7
|
+
# As an example, the C# client generator defines ApiClient.cs.
|
8
|
+
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
|
9
|
+
#ApiClient.cs
|
10
|
+
|
11
|
+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
12
|
+
#foo/*/qux
|
13
|
+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
14
|
+
|
15
|
+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
16
|
+
#foo/**/qux
|
17
|
+
# Thsi matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
18
|
+
|
19
|
+
# You can also negate patterns with an exclamation (!).
|
20
|
+
# For example, you can ignore all files in a docs folder with the file extension .md:
|
21
|
+
#docs/*.md
|
22
|
+
# Then explicitly reverse the ignore rule for a single file:
|
23
|
+
#!docs/README.md
|
@@ -0,0 +1,22 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
rack (1.6.4)
|
5
|
+
rack-protection (1.5.3)
|
6
|
+
rack
|
7
|
+
sinatra (1.4.7)
|
8
|
+
rack (~> 1.5)
|
9
|
+
rack-protection (~> 1.4)
|
10
|
+
tilt (>= 1.3, < 3)
|
11
|
+
sinatra-cross_origin (0.3.2)
|
12
|
+
tilt (2.0.5)
|
13
|
+
|
14
|
+
PLATFORMS
|
15
|
+
ruby
|
16
|
+
|
17
|
+
DEPENDENCIES
|
18
|
+
sinatra
|
19
|
+
sinatra-cross_origin
|
20
|
+
|
21
|
+
BUNDLED WITH
|
22
|
+
1.12.3
|