blueprint_ruby_client 0.1.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 +7 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +65 -0
- data/README.md +152 -0
- data/blueprint_ruby_client.gemspec +31 -0
- data/config.json +13 -0
- data/docs/Asset.md +9 -0
- data/docs/AssetBody.md +9 -0
- data/docs/AssetResultSet.md +9 -0
- data/docs/AssetsApi.md +376 -0
- data/docs/Error.md +10 -0
- data/docs/Errors.md +8 -0
- data/docs/HierarchyApi.md +745 -0
- data/docs/Links.md +10 -0
- data/docs/Meta.md +10 -0
- data/docs/Namespace.md +9 -0
- data/docs/NamespaceRelationship.md +8 -0
- data/docs/Node.md +11 -0
- data/docs/NodeAttributes.md +13 -0
- data/docs/NodeBody.md +9 -0
- data/docs/NodeRelationship.md +10 -0
- data/docs/NodeRelationships.md +10 -0
- data/docs/NodeResultSet.md +10 -0
- data/generate.sh +7 -0
- data/git_push.sh +52 -0
- data/lib/blueprint_ruby_client/api/assets_api.rb +598 -0
- data/lib/blueprint_ruby_client/api/hierarchy_api.rb +1174 -0
- data/lib/blueprint_ruby_client/api_client.rb +365 -0
- data/lib/blueprint_ruby_client/api_error.rb +36 -0
- data/lib/blueprint_ruby_client/configuration.rb +170 -0
- data/lib/blueprint_ruby_client/models/asset.rb +242 -0
- data/lib/blueprint_ruby_client/models/asset_body.rb +237 -0
- data/lib/blueprint_ruby_client/models/asset_result_set.rb +234 -0
- data/lib/blueprint_ruby_client/models/error.rb +267 -0
- data/lib/blueprint_ruby_client/models/errors.rb +209 -0
- data/lib/blueprint_ruby_client/models/links.rb +257 -0
- data/lib/blueprint_ruby_client/models/meta.rb +260 -0
- data/lib/blueprint_ruby_client/models/namespace.rb +242 -0
- data/lib/blueprint_ruby_client/models/namespace_relationship.rb +207 -0
- data/lib/blueprint_ruby_client/models/node.rb +293 -0
- data/lib/blueprint_ruby_client/models/node_attributes.rb +338 -0
- data/lib/blueprint_ruby_client/models/node_body.rb +237 -0
- data/lib/blueprint_ruby_client/models/node_relationship.rb +259 -0
- data/lib/blueprint_ruby_client/models/node_relationships.rb +257 -0
- data/lib/blueprint_ruby_client/models/node_result_set.rb +261 -0
- data/lib/blueprint_ruby_client/version.rb +15 -0
- data/lib/blueprint_ruby_client.rb +56 -0
- data/spec/api/assets_api_spec.rb +150 -0
- data/spec/api/hierarchy_api_spec.rb +266 -0
- data/spec/models/asset_body_spec.rb +56 -0
- data/spec/models/asset_result_set_spec.rb +56 -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/links_spec.rb +66 -0
- data/spec/models/meta_spec.rb +66 -0
- data/spec/models/namespace_relationship_spec.rb +46 -0
- data/spec/models/namespace_spec.rb +56 -0
- data/spec/models/node_attributes_spec.rb +96 -0
- data/spec/models/node_body_spec.rb +56 -0
- data/spec/models/node_relationship_spec.rb +66 -0
- data/spec/models/node_relationships_spec.rb +66 -0
- data/spec/models/node_result_set_spec.rb +66 -0
- data/spec/models/node_spec.rb +76 -0
- data/swagger-codegen-cli.jar +0 -0
- data/templates/Gemfile.mustache +4 -0
- data/templates/README.mustache +139 -0
- data/templates/api.mustache +135 -0
- data/templates/api_client.mustache +357 -0
- data/templates/api_doc.mustache +79 -0
- data/templates/api_error.mustache +28 -0
- data/templates/api_info.mustache +18 -0
- data/templates/api_test.mustache +47 -0
- data/templates/base_object.mustache +103 -0
- data/templates/configuration.mustache +192 -0
- data/templates/gem.mustache +40 -0
- data/templates/gemspec.mustache +31 -0
- data/templates/gitignore.mustache +40 -0
- data/templates/model.mustache +242 -0
- data/templates/model_doc.mustache +9 -0
- data/templates/model_test.mustache +40 -0
- data/templates/version.mustache +7 -0
- metadata +322 -0
@@ -0,0 +1,266 @@
|
|
1
|
+
=begin
|
2
|
+
Talis Blueprint API
|
3
|
+
|
4
|
+
This is the API documentation for [Blueprint](https://github.com/talis/blueprint-server), a primitive for institutional structure and time periods
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.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 BlueprintClient::HierarchyApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'HierarchyApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = BlueprintClient::HierarchyApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of HierarchyApi' do
|
30
|
+
it 'should create an instact of HierarchyApi' do
|
31
|
+
@instance.should be_a(BlueprintClient::HierarchyApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for add_node
|
36
|
+
#
|
37
|
+
# Add a node
|
38
|
+
# @param namespace_inc_global identifier namespacing the blueprint. `global` is a special namespace which references data from all blueprints in the call.
|
39
|
+
# @param body node
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @return [NodeBody]
|
42
|
+
describe 'add_node 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 bulk_upload
|
53
|
+
#
|
54
|
+
# Send operations to modify nodes in bulk, to be applied/rejected as a single transaction.\nFormat will be:\n\n OLD NODE TYPE, OLD NODE ID, NEW NODE TYPE, NEW NODE ID, PARENTS, TITLE, DESCRIPTION, DOMAIN IDS, STUDENT NUMBERS\n
|
55
|
+
# @param namespace identifier namespacing the blueprint.
|
56
|
+
# @param [Hash] opts the optional parameters
|
57
|
+
# @return [nil]
|
58
|
+
describe 'bulk_upload test' do
|
59
|
+
it "should work" do
|
60
|
+
# assertion here
|
61
|
+
# should be_a()
|
62
|
+
# should be_nil
|
63
|
+
# should ==
|
64
|
+
# should_not ==
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
# unit tests for delete_node
|
69
|
+
#
|
70
|
+
# Delete a node
|
71
|
+
# @param namespace identifier namespacing the blueprint.
|
72
|
+
# @param id id identifying a domain model
|
73
|
+
# @param type Plural form of node type (adds an 's' to the end of the type) todo - allow configuration of plurals
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @return [nil]
|
76
|
+
describe 'delete_node test' do
|
77
|
+
it "should work" do
|
78
|
+
# assertion here
|
79
|
+
# should be_a()
|
80
|
+
# should be_nil
|
81
|
+
# should ==
|
82
|
+
# should_not ==
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
# unit tests for export_hierarchy
|
87
|
+
#
|
88
|
+
# Download the blueprint's nodes in CSV format\nFormat will be:\n\n OLD NODE TYPE, OLD NODE ID, NEW NODE TYPE, NEW NODE ID, PARENTS, TITLE, DESCRIPTION, DOMAIN IDS, STUDENT NUMBERS\n\nOLD NODE TYPE and OLD NODE ID are left intentionally blank to allow direct upload of the output back into the bulk importer\n
|
89
|
+
# @param namespace identifier namespacing the blueprint.
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @return [nil]
|
92
|
+
describe 'export_hierarchy test' do
|
93
|
+
it "should work" do
|
94
|
+
# assertion here
|
95
|
+
# should be_a()
|
96
|
+
# should be_nil
|
97
|
+
# should ==
|
98
|
+
# should_not ==
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# unit tests for get_ancestors
|
103
|
+
# Get ancestor nodes
|
104
|
+
# A proxy for finding ancestors of a given node, equivalent to\n`/1/abc/nodes?filter[descendant]=department%2Fdep101`\n
|
105
|
+
# @param id id identifying a domain model
|
106
|
+
# @param namespace identifier namespacing the blueprint.
|
107
|
+
# @param type Plural form of node type (adds an 's' to the end of the type) todo - allow configuration of plurals
|
108
|
+
# @param [Hash] opts the optional parameters
|
109
|
+
# @option opts [Float] :offset index to start result set from
|
110
|
+
# @option opts [Float] :limit number of records to return
|
111
|
+
# @return [NodeResultSet]
|
112
|
+
describe 'get_ancestors test' do
|
113
|
+
it "should work" do
|
114
|
+
# assertion here
|
115
|
+
# should be_a()
|
116
|
+
# should be_nil
|
117
|
+
# should ==
|
118
|
+
# should_not ==
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
# unit tests for get_children
|
123
|
+
# Get child nodes
|
124
|
+
# A proxy for finding children of a given node, equivalent to\n`/1/abc/nodes?filter[parent]=department%2Fdep101`\n
|
125
|
+
# @param id id identifying a domain model
|
126
|
+
# @param namespace identifier namespacing the blueprint.
|
127
|
+
# @param type Plural form of node type (adds an 's' to the end of the type) todo - allow configuration of plurals
|
128
|
+
# @param [Hash] opts the optional parameters
|
129
|
+
# @option opts [Float] :offset index to start result set from
|
130
|
+
# @option opts [Float] :limit number of records to return
|
131
|
+
# @return [NodeResultSet]
|
132
|
+
describe 'get_children test' do
|
133
|
+
it "should work" do
|
134
|
+
# assertion here
|
135
|
+
# should be_a()
|
136
|
+
# should be_nil
|
137
|
+
# should ==
|
138
|
+
# should_not ==
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
# unit tests for get_descendants
|
143
|
+
# Get descendant nodes
|
144
|
+
# A proxy for finding descendants of a given node, equivalent to\n`/1/abc/nodes?filter[ancestor]=department%2Fdep101`\n
|
145
|
+
# @param id id identifying a domain model
|
146
|
+
# @param namespace identifier namespacing the blueprint.
|
147
|
+
# @param type Plural form of node type (adds an 's' to the end of the type) todo - allow configuration of plurals
|
148
|
+
# @param [Hash] opts the optional parameters
|
149
|
+
# @option opts [Float] :offset index to start result set from
|
150
|
+
# @option opts [Float] :limit number of records to return
|
151
|
+
# @return [NodeResultSet]
|
152
|
+
describe 'get_descendants test' do
|
153
|
+
it "should work" do
|
154
|
+
# assertion here
|
155
|
+
# should be_a()
|
156
|
+
# should be_nil
|
157
|
+
# should ==
|
158
|
+
# should_not ==
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
# unit tests for get_node
|
163
|
+
#
|
164
|
+
# Get details of a given node
|
165
|
+
# @param namespace identifier namespacing the blueprint.
|
166
|
+
# @param id id identifying a domain model
|
167
|
+
# @param type Plural form of node type (adds an 's' to the end of the type) todo - allow configuration of plurals
|
168
|
+
# @param [Hash] opts the optional parameters
|
169
|
+
# @option opts [String] :includes comma separated list of elements to hydrate. Can include children, ancestors or both
|
170
|
+
# @return [NodeBody]
|
171
|
+
describe 'get_node test' do
|
172
|
+
it "should work" do
|
173
|
+
# assertion here
|
174
|
+
# should be_a()
|
175
|
+
# should be_nil
|
176
|
+
# should ==
|
177
|
+
# should_not ==
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
# unit tests for get_parents
|
182
|
+
# Get parent nodes
|
183
|
+
# A proxy for finding parents of a given node, equivalent to\n`/1/abc/nodes?filter[child]=department%2Fdep101`\n
|
184
|
+
# @param id id identifying a domain model
|
185
|
+
# @param namespace identifier namespacing the blueprint.
|
186
|
+
# @param type Plural form of node type (adds an 's' to the end of the type) todo - allow configuration of plurals
|
187
|
+
# @param [Hash] opts the optional parameters
|
188
|
+
# @option opts [Float] :offset index to start result set from
|
189
|
+
# @option opts [Float] :limit number of records to return
|
190
|
+
# @return [NodeResultSet]
|
191
|
+
describe 'get_parents test' do
|
192
|
+
it "should work" do
|
193
|
+
# assertion here
|
194
|
+
# should be_a()
|
195
|
+
# should be_nil
|
196
|
+
# should ==
|
197
|
+
# should_not ==
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
# unit tests for replace_node
|
202
|
+
#
|
203
|
+
# Replaces the node with the data sent in the body
|
204
|
+
# @param namespace identifier namespacing the blueprint.
|
205
|
+
# @param id id identifying a domain model
|
206
|
+
# @param body node
|
207
|
+
# @param type Plural form of node type (adds an 's' to the end of the type) todo - allow configuration of plurals
|
208
|
+
# @param [Hash] opts the optional parameters
|
209
|
+
# @return [NodeBody]
|
210
|
+
describe 'replace_node test' do
|
211
|
+
it "should work" do
|
212
|
+
# assertion here
|
213
|
+
# should be_a()
|
214
|
+
# should be_nil
|
215
|
+
# should ==
|
216
|
+
# should_not ==
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
# unit tests for search_nodes
|
221
|
+
# Search nodes
|
222
|
+
# This endpoint is a really flexible way to ask questions about the hierarchy. for example:\n\n###### Find all nodes for abc:\n`/1/abc/nodes`\n\n###### Find all modules for abc:\n`/1/abc/nodes?filter[nodeType]=Module`\n\n###### Find all nodes that are descendants of DEP101:\n`/1/abc/nodes?filter[descendant]=department%2Fdep101`\n\n###### Find all Departments that are ancestors of ABF203:\n`/1/abc/nodes?filter[descendant]=module%2Fabf203&filter[nodeType]=Department` # <= case insensitive\n\n###### Find all nodes with list assets that are descendants of DEP101 for abc:\n`/1/abc/nodes?filter[nodeType]=Module&filter[ancestor]=department%2FDEP101&filter[hasAssets]=true&filter[assetType]=List`\n\n###### Globally, find all modules that have no list assets\n`/1/global/nodes?filter[nodeType]=Module&filter[hasAssets]=false&filter[assetType]=List`\n\n###### Find all nodes of type time period valid during 2015 that have no list assets. Note a node's valid_from/valid_to just need to overlap from/to to qualify\n`/1/global/nodes?filter[nodeType]=TimePeriod&filter[hasAssets]=false&filter[assetType]=List&filter[from]=20150101&filter[to]=20151231`\n
|
223
|
+
# @param namespace_inc_global identifier namespacing the blueprint. `global` is a special namespace which references data from all blueprints in the call.
|
224
|
+
# @param [Hash] opts the optional parameters
|
225
|
+
# @option opts [Float] :offset index to start result set from
|
226
|
+
# @option opts [Float] :limit number of records to return
|
227
|
+
# @option opts [String] :filter_node_type type of nodes to return
|
228
|
+
# @option opts [String] :filter_child limit to nodes with children matching code
|
229
|
+
# @option opts [String] :filter_parent limit to nodes with parent matching code
|
230
|
+
# @option opts [String] :filter_ancestor limit to nodes with ancestor matching code
|
231
|
+
# @option opts [String] :filter_descendant limit to nodes with descendant matching code
|
232
|
+
# @option opts [BOOLEAN] :filter_has_assets limit to either nodes that have assets (true) nodes that have no assets (false) or omit to consider both nodes with and without assets
|
233
|
+
# @option opts [String] :filter_asset_type type of asset to return
|
234
|
+
# @option opts [Date] :filter_from limit to results valid after this date, format is ISO8601 date
|
235
|
+
# @option opts [Date] :filter_to limit to results valid before this date, format is ISO8601
|
236
|
+
# @return [NodeResultSet]
|
237
|
+
describe 'search_nodes test' do
|
238
|
+
it "should work" do
|
239
|
+
# assertion here
|
240
|
+
# should be_a()
|
241
|
+
# should be_nil
|
242
|
+
# should ==
|
243
|
+
# should_not ==
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
247
|
+
# unit tests for update_node
|
248
|
+
#
|
249
|
+
# Perform a partial update of a node
|
250
|
+
# @param namespace identifier namespacing the blueprint.
|
251
|
+
# @param id id identifying a domain model
|
252
|
+
# @param body node
|
253
|
+
# @param type Plural form of node type (adds an 's' to the end of the type) todo - allow configuration of plurals
|
254
|
+
# @param [Hash] opts the optional parameters
|
255
|
+
# @return [NodeBody]
|
256
|
+
describe 'update_node test' do
|
257
|
+
it "should work" do
|
258
|
+
# assertion here
|
259
|
+
# should be_a()
|
260
|
+
# should be_nil
|
261
|
+
# should ==
|
262
|
+
# should_not ==
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
266
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
=begin
|
2
|
+
Talis Blueprint API
|
3
|
+
|
4
|
+
This is the API documentation for [Blueprint](https://github.com/talis/blueprint-server), a primitive for institutional structure and time periods
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.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 BlueprintClient::AssetBody
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'AssetBody' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = BlueprintClient::AssetBody.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of AssetBody' do
|
31
|
+
it 'should create an instact of AssetBody' do
|
32
|
+
@instance.should be_a(BlueprintClient::AssetBody)
|
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,56 @@
|
|
1
|
+
=begin
|
2
|
+
Talis Blueprint API
|
3
|
+
|
4
|
+
This is the API documentation for [Blueprint](https://github.com/talis/blueprint-server), a primitive for institutional structure and time periods
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.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 BlueprintClient::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 = BlueprintClient::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(BlueprintClient::AssetResultSet)
|
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,56 @@
|
|
1
|
+
=begin
|
2
|
+
Talis Blueprint API
|
3
|
+
|
4
|
+
This is the API documentation for [Blueprint](https://github.com/talis/blueprint-server), a primitive for institutional structure and time periods
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.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 BlueprintClient::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 = BlueprintClient::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(BlueprintClient::Asset)
|
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
|
+
Talis Blueprint API
|
3
|
+
|
4
|
+
This is the API documentation for [Blueprint](https://github.com/talis/blueprint-server), a primitive for institutional structure and time periods
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.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 BlueprintClient::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 = BlueprintClient::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(BlueprintClient::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
|
+
|