form_api 0.1.5 → 0.2.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.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +15 -13
  3. data/.swagger-codegen-ignore +0 -8
  4. data/Gemfile +1 -0
  5. data/Gemfile.lock +80 -0
  6. data/README.md +86 -70
  7. data/Rakefile +0 -3
  8. data/docs/CreateCombinedSubmissionBody.md +11 -0
  9. data/docs/CreateSubmissionBatchBody.md +10 -0
  10. data/docs/CreateSubmissionBody.md +10 -0
  11. data/docs/InlineResponse200.md +8 -0
  12. data/docs/InlineResponse2001.md +21 -0
  13. data/docs/InlineResponse201.md +9 -0
  14. data/docs/InlineResponse2011.md +9 -0
  15. data/docs/InlineResponse201CombinedSubmission.md +14 -0
  16. data/docs/InlineResponse400.md +9 -0
  17. data/docs/InlineResponse401.md +8 -0
  18. data/docs/InlineResponse422.md +9 -0
  19. data/docs/PDFApi.md +482 -0
  20. data/docs/TemplatestemplateIdsubmissionsbatchSubmission.md +14 -0
  21. data/form_api.gemspec +3 -10
  22. data/git_push.sh +55 -0
  23. data/{extensions/lib → lib}/form_api/api/client.rb +2 -2
  24. data/lib/form_api/api/pdf_api.rb +129 -19
  25. data/lib/form_api/configuration.rb +1 -1
  26. data/lib/form_api/models/{data.rb → create_combined_submission_body.rb} +1 -1
  27. data/lib/form_api/models/create_submission_batch_body.rb +211 -0
  28. data/lib/form_api/models/{data_1.rb → create_submission_body.rb} +1 -1
  29. data/lib/form_api/models/inline_response_200_1.rb +400 -0
  30. data/lib/form_api/models/inline_response_201_1.rb +1 -1
  31. data/lib/form_api/models/{inline_response_201_1_submission.rb → templatestemplate_idsubmissionsbatch_submission.rb} +1 -1
  32. data/lib/form_api/version.rb +1 -1
  33. data/lib/form_api.rb +6 -4
  34. data/spec/api/pdf_api_spec.rb +41 -15
  35. data/spec/api_client_spec.rb +1 -1
  36. data/spec/models/{data_spec.rb → create_combined_submission_body_spec.rb} +6 -6
  37. data/spec/models/create_submission_batch_body_spec.rb +54 -0
  38. data/spec/models/{data_1_spec.rb → create_submission_body_spec.rb} +6 -6
  39. data/spec/models/inline_response_200_1_spec.rb +124 -0
  40. data/spec/models/{inline_response_201_1_submission_spec.rb → templatestemplate_idsubmissionsbatch_submission_spec.rb} +6 -6
  41. data/spec/vcr_cassettes/FormAPI_Client/should_generate_a_PDF_and_wait_for_the_submission_to_be_processed.yml +2 -2
  42. metadata +45 -47
  43. data/.swagger-revision +0 -1
  44. data/.travis.yml +0 -8
  45. data/CHANGELOG.md +0 -2
  46. data/LICENSE +0 -7
  47. data/examples/generate_and_download_pdf.rb +0 -60
  48. data/examples/generate_pdf_async.rb +0 -57
  49. data/examples/merge_generated_pdfs.rb +0 -31
  50. data/scripts/clean +0 -5
  51. data/scripts/fix_gemspec.rb +0 -31
  52. data/scripts/generate +0 -22
  53. data/scripts/post_generate +0 -22
  54. data/scripts/release +0 -6
  55. data/scripts/swagger +0 -35
  56. data/scripts/test +0 -24
  57. data/swagger-config.json +0 -13
@@ -0,0 +1,400 @@
1
+ =begin
2
+ #API V1
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module FormAPI
16
+
17
+ class InlineResponse2001
18
+ attr_accessor :id
19
+
20
+ attr_accessor :name
21
+
22
+ attr_accessor :template_type
23
+
24
+ attr_accessor :public_web_form
25
+
26
+ attr_accessor :public_submissions
27
+
28
+ attr_accessor :expire_submissions
29
+
30
+ attr_accessor :expire_after
31
+
32
+ attr_accessor :expiration_interval
33
+
34
+ attr_accessor :allow_additional_properties
35
+
36
+ attr_accessor :page_dimensions
37
+
38
+ attr_accessor :webhook_url
39
+
40
+ attr_accessor :slack_webhook_url
41
+
42
+ attr_accessor :redirect_url
43
+
44
+ attr_accessor :blockchain_timestamp_verification
45
+
46
+ class EnumAttributeValidator
47
+ attr_reader :datatype
48
+ attr_reader :allowable_values
49
+
50
+ def initialize(datatype, allowable_values)
51
+ @allowable_values = allowable_values.map do |value|
52
+ case datatype.to_s
53
+ when /Integer/i
54
+ value.to_i
55
+ when /Float/i
56
+ value.to_f
57
+ else
58
+ value
59
+ end
60
+ end
61
+ end
62
+
63
+ def valid?(value)
64
+ !value || allowable_values.include?(value)
65
+ end
66
+ end
67
+
68
+ # Attribute mapping from ruby-style variable name to JSON key.
69
+ def self.attribute_map
70
+ {
71
+ :'id' => :'id',
72
+ :'name' => :'name',
73
+ :'template_type' => :'template_type',
74
+ :'public_web_form' => :'public_web_form',
75
+ :'public_submissions' => :'public_submissions',
76
+ :'expire_submissions' => :'expire_submissions',
77
+ :'expire_after' => :'expire_after',
78
+ :'expiration_interval' => :'expiration_interval',
79
+ :'allow_additional_properties' => :'allow_additional_properties',
80
+ :'page_dimensions' => :'page_dimensions',
81
+ :'webhook_url' => :'webhook_url',
82
+ :'slack_webhook_url' => :'slack_webhook_url',
83
+ :'redirect_url' => :'redirect_url',
84
+ :'blockchain_timestamp_verification' => :'blockchain_timestamp_verification'
85
+ }
86
+ end
87
+
88
+ # Attribute type mapping.
89
+ def self.swagger_types
90
+ {
91
+ :'id' => :'String',
92
+ :'name' => :'String',
93
+ :'template_type' => :'String',
94
+ :'public_web_form' => :'BOOLEAN',
95
+ :'public_submissions' => :'BOOLEAN',
96
+ :'expire_submissions' => :'BOOLEAN',
97
+ :'expire_after' => :'Float',
98
+ :'expiration_interval' => :'String',
99
+ :'allow_additional_properties' => :'BOOLEAN',
100
+ :'page_dimensions' => :'Array<Array<Float>>',
101
+ :'webhook_url' => :'String',
102
+ :'slack_webhook_url' => :'String',
103
+ :'redirect_url' => :'String',
104
+ :'blockchain_timestamp_verification' => :'BOOLEAN'
105
+ }
106
+ end
107
+
108
+ # Initializes the object
109
+ # @param [Hash] attributes Model attributes in the form of hash
110
+ def initialize(attributes = {})
111
+ return unless attributes.is_a?(Hash)
112
+
113
+ # convert string to symbol for hash key
114
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
115
+
116
+ if attributes.has_key?(:'id')
117
+ self.id = attributes[:'id']
118
+ end
119
+
120
+ if attributes.has_key?(:'name')
121
+ self.name = attributes[:'name']
122
+ end
123
+
124
+ if attributes.has_key?(:'template_type')
125
+ self.template_type = attributes[:'template_type']
126
+ end
127
+
128
+ if attributes.has_key?(:'public_web_form')
129
+ self.public_web_form = attributes[:'public_web_form']
130
+ end
131
+
132
+ if attributes.has_key?(:'public_submissions')
133
+ self.public_submissions = attributes[:'public_submissions']
134
+ end
135
+
136
+ if attributes.has_key?(:'expire_submissions')
137
+ self.expire_submissions = attributes[:'expire_submissions']
138
+ end
139
+
140
+ if attributes.has_key?(:'expire_after')
141
+ self.expire_after = attributes[:'expire_after']
142
+ end
143
+
144
+ if attributes.has_key?(:'expiration_interval')
145
+ self.expiration_interval = attributes[:'expiration_interval']
146
+ end
147
+
148
+ if attributes.has_key?(:'allow_additional_properties')
149
+ self.allow_additional_properties = attributes[:'allow_additional_properties']
150
+ end
151
+
152
+ if attributes.has_key?(:'page_dimensions')
153
+ if (value = attributes[:'page_dimensions']).is_a?(Array)
154
+ self.page_dimensions = value
155
+ end
156
+ end
157
+
158
+ if attributes.has_key?(:'webhook_url')
159
+ self.webhook_url = attributes[:'webhook_url']
160
+ end
161
+
162
+ if attributes.has_key?(:'slack_webhook_url')
163
+ self.slack_webhook_url = attributes[:'slack_webhook_url']
164
+ end
165
+
166
+ if attributes.has_key?(:'redirect_url')
167
+ self.redirect_url = attributes[:'redirect_url']
168
+ end
169
+
170
+ if attributes.has_key?(:'blockchain_timestamp_verification')
171
+ self.blockchain_timestamp_verification = attributes[:'blockchain_timestamp_verification']
172
+ end
173
+
174
+ end
175
+
176
+ # Show invalid properties with the reasons. Usually used together with valid?
177
+ # @return Array for valid properies with the reasons
178
+ def list_invalid_properties
179
+ invalid_properties = Array.new
180
+ if @id.nil?
181
+ invalid_properties.push("invalid value for 'id', id cannot be nil.")
182
+ end
183
+
184
+ if @name.nil?
185
+ invalid_properties.push("invalid value for 'name', name cannot be nil.")
186
+ end
187
+
188
+ if @template_type.nil?
189
+ invalid_properties.push("invalid value for 'template_type', template_type cannot be nil.")
190
+ end
191
+
192
+ if @public_web_form.nil?
193
+ invalid_properties.push("invalid value for 'public_web_form', public_web_form cannot be nil.")
194
+ end
195
+
196
+ if @public_submissions.nil?
197
+ invalid_properties.push("invalid value for 'public_submissions', public_submissions cannot be nil.")
198
+ end
199
+
200
+ if @expire_submissions.nil?
201
+ invalid_properties.push("invalid value for 'expire_submissions', expire_submissions cannot be nil.")
202
+ end
203
+
204
+ if @allow_additional_properties.nil?
205
+ invalid_properties.push("invalid value for 'allow_additional_properties', allow_additional_properties cannot be nil.")
206
+ end
207
+
208
+ if @page_dimensions.nil?
209
+ invalid_properties.push("invalid value for 'page_dimensions', page_dimensions cannot be nil.")
210
+ end
211
+
212
+ if @webhook_url.nil?
213
+ invalid_properties.push("invalid value for 'webhook_url', webhook_url cannot be nil.")
214
+ end
215
+
216
+ if @slack_webhook_url.nil?
217
+ invalid_properties.push("invalid value for 'slack_webhook_url', slack_webhook_url cannot be nil.")
218
+ end
219
+
220
+ if @redirect_url.nil?
221
+ invalid_properties.push("invalid value for 'redirect_url', redirect_url cannot be nil.")
222
+ end
223
+
224
+ if @blockchain_timestamp_verification.nil?
225
+ invalid_properties.push("invalid value for 'blockchain_timestamp_verification', blockchain_timestamp_verification cannot be nil.")
226
+ end
227
+
228
+ return invalid_properties
229
+ end
230
+
231
+ # Check to see if the all the properties in the model are valid
232
+ # @return true if the model is valid
233
+ def valid?
234
+ return false if @id.nil?
235
+ return false if @name.nil?
236
+ return false if @template_type.nil?
237
+ return false if @public_web_form.nil?
238
+ return false if @public_submissions.nil?
239
+ return false if @expire_submissions.nil?
240
+ expiration_interval_validator = EnumAttributeValidator.new('String', ["minutes", "hours", "days"])
241
+ return false unless expiration_interval_validator.valid?(@expiration_interval)
242
+ return false if @allow_additional_properties.nil?
243
+ return false if @page_dimensions.nil?
244
+ return false if @webhook_url.nil?
245
+ return false if @slack_webhook_url.nil?
246
+ return false if @redirect_url.nil?
247
+ return false if @blockchain_timestamp_verification.nil?
248
+ return true
249
+ end
250
+
251
+ # Custom attribute writer method checking allowed values (enum).
252
+ # @param [Object] expiration_interval Object to be assigned
253
+ def expiration_interval=(expiration_interval)
254
+ validator = EnumAttributeValidator.new('String', ["minutes", "hours", "days"])
255
+ unless validator.valid?(expiration_interval)
256
+ fail ArgumentError, "invalid value for 'expiration_interval', must be one of #{validator.allowable_values}."
257
+ end
258
+ @expiration_interval = expiration_interval
259
+ end
260
+
261
+ # Checks equality by comparing each attribute.
262
+ # @param [Object] Object to be compared
263
+ def ==(o)
264
+ return true if self.equal?(o)
265
+ self.class == o.class &&
266
+ id == o.id &&
267
+ name == o.name &&
268
+ template_type == o.template_type &&
269
+ public_web_form == o.public_web_form &&
270
+ public_submissions == o.public_submissions &&
271
+ expire_submissions == o.expire_submissions &&
272
+ expire_after == o.expire_after &&
273
+ expiration_interval == o.expiration_interval &&
274
+ allow_additional_properties == o.allow_additional_properties &&
275
+ page_dimensions == o.page_dimensions &&
276
+ webhook_url == o.webhook_url &&
277
+ slack_webhook_url == o.slack_webhook_url &&
278
+ redirect_url == o.redirect_url &&
279
+ blockchain_timestamp_verification == o.blockchain_timestamp_verification
280
+ end
281
+
282
+ # @see the `==` method
283
+ # @param [Object] Object to be compared
284
+ def eql?(o)
285
+ self == o
286
+ end
287
+
288
+ # Calculates hash code according to all attributes.
289
+ # @return [Fixnum] Hash code
290
+ def hash
291
+ [id, name, template_type, public_web_form, public_submissions, expire_submissions, expire_after, expiration_interval, allow_additional_properties, page_dimensions, webhook_url, slack_webhook_url, redirect_url, blockchain_timestamp_verification].hash
292
+ end
293
+
294
+ # Builds the object from hash
295
+ # @param [Hash] attributes Model attributes in the form of hash
296
+ # @return [Object] Returns the model itself
297
+ def build_from_hash(attributes)
298
+ return nil unless attributes.is_a?(Hash)
299
+ self.class.swagger_types.each_pair do |key, type|
300
+ if type =~ /\AArray<(.*)>/i
301
+ # check to ensure the input is an array given that the the attribute
302
+ # is documented as an array but the input is not
303
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
304
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
305
+ end
306
+ elsif !attributes[self.class.attribute_map[key]].nil?
307
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
308
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
309
+ end
310
+
311
+ self
312
+ end
313
+
314
+ # Deserializes the data based on type
315
+ # @param string type Data type
316
+ # @param string value Value to be deserialized
317
+ # @return [Object] Deserialized data
318
+ def _deserialize(type, value)
319
+ case type.to_sym
320
+ when :DateTime
321
+ DateTime.parse(value)
322
+ when :Date
323
+ Date.parse(value)
324
+ when :String
325
+ value.to_s
326
+ when :Integer
327
+ value.to_i
328
+ when :Float
329
+ value.to_f
330
+ when :BOOLEAN
331
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
332
+ true
333
+ else
334
+ false
335
+ end
336
+ when :Object
337
+ # generic object (usually a Hash), return directly
338
+ value
339
+ when /\AArray<(?<inner_type>.+)>\z/
340
+ inner_type = Regexp.last_match[:inner_type]
341
+ value.map { |v| _deserialize(inner_type, v) }
342
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
343
+ k_type = Regexp.last_match[:k_type]
344
+ v_type = Regexp.last_match[:v_type]
345
+ {}.tap do |hash|
346
+ value.each do |k, v|
347
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
348
+ end
349
+ end
350
+ else # model
351
+ temp_model = FormAPI.const_get(type).new
352
+ temp_model.build_from_hash(value)
353
+ end
354
+ end
355
+
356
+ # Returns the string representation of the object
357
+ # @return [String] String presentation of the object
358
+ def to_s
359
+ to_hash.to_s
360
+ end
361
+
362
+ # to_body is an alias to to_hash (backward compatibility)
363
+ # @return [Hash] Returns the object in the form of hash
364
+ def to_body
365
+ to_hash
366
+ end
367
+
368
+ # Returns the object in the form of hash
369
+ # @return [Hash] Returns the object in the form of hash
370
+ def to_hash
371
+ hash = {}
372
+ self.class.attribute_map.each_pair do |attr, param|
373
+ value = self.send(attr)
374
+ next if value.nil?
375
+ hash[param] = _to_hash(value)
376
+ end
377
+ hash
378
+ end
379
+
380
+ # Outputs non-array value in the form of hash
381
+ # For object, use to_hash. Otherwise, just return the value
382
+ # @param [Object] value Any valid value
383
+ # @return [Hash] Returns the value in the form of hash
384
+ def _to_hash(value)
385
+ if value.is_a?(Array)
386
+ value.compact.map{ |v| _to_hash(v) }
387
+ elsif value.is_a?(Hash)
388
+ {}.tap do |hash|
389
+ value.each { |k, v| hash[k] = _to_hash(v) }
390
+ end
391
+ elsif value.respond_to? :to_hash
392
+ value.to_hash
393
+ else
394
+ value
395
+ end
396
+ end
397
+
398
+ end
399
+
400
+ end
@@ -53,7 +53,7 @@ module FormAPI
53
53
  def self.swagger_types
54
54
  {
55
55
  :'status' => :'String',
56
- :'submission' => :'InlineResponse2011Submission'
56
+ :'submission' => :'TemplatestemplateIdsubmissionsbatchSubmission'
57
57
  }
58
58
  end
59
59
 
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module FormAPI
16
16
 
17
- class InlineResponse2011Submission
17
+ class TemplatestemplateIdsubmissionsbatchSubmission
18
18
  attr_accessor :id
19
19
 
20
20
  attr_accessor :test
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.3.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module FormAPI
14
- VERSION = "0.1.5"
14
+ VERSION = "0.2.0"
15
15
  end
data/lib/form_api.rb CHANGED
@@ -17,19 +17,21 @@ require 'form_api/version'
17
17
  require 'form_api/configuration'
18
18
 
19
19
  # Models
20
- require 'form_api/models/data'
21
- require 'form_api/models/data_1'
20
+ require 'form_api/models/create_combined_submission_body'
21
+ require 'form_api/models/create_submission_batch_body'
22
+ require 'form_api/models/create_submission_body'
22
23
  require 'form_api/models/inline_response_200'
24
+ require 'form_api/models/inline_response_200_1'
23
25
  require 'form_api/models/inline_response_201'
24
26
  require 'form_api/models/inline_response_201_1'
25
- require 'form_api/models/inline_response_201_1_submission'
26
27
  require 'form_api/models/inline_response_201_combined_submission'
27
28
  require 'form_api/models/inline_response_400'
28
29
  require 'form_api/models/inline_response_401'
29
30
  require 'form_api/models/inline_response_422'
31
+ require 'form_api/models/templatestemplate_idsubmissionsbatch_submission'
30
32
 
31
33
  # APIs
32
- require File.join(File.dirname(__FILE__), '../extensions/lib/form_api/api/client')
34
+ require 'form_api/api/client'
33
35
 
34
36
  module FormAPI
35
37
  class << self
@@ -32,11 +32,24 @@ describe 'PDFApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for batch_generate_pdf
36
+ # Generates multiple PDFs
37
+ #
38
+ # @param template_id
39
+ # @param [Hash] opts the optional parameters
40
+ # @option opts [Array<CreateSubmissionBatchBody>] :create_submission_batch_body
41
+ # @return [Array<InlineResponse2011>]
42
+ describe 'batch_generate_pdf test' do
43
+ it "should work" do
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ end
46
+ end
47
+
35
48
  # unit tests for combine_submissions
36
49
  # Merge generated PDFs together
37
- #
50
+ #
38
51
  # @param [Hash] opts the optional parameters
39
- # @option opts [Data] :data
52
+ # @option opts [CreateCombinedSubmissionBody] :create_combined_submission_body
40
53
  # @return [InlineResponse201]
41
54
  describe 'combine_submissions test' do
42
55
  it "should work" do
@@ -46,8 +59,8 @@ describe 'PDFApi' do
46
59
 
47
60
  # unit tests for expire_combined_submission
48
61
  # Expire a combined submission
49
- #
50
- # @param combined_submission_id
62
+ #
63
+ # @param combined_submission_id
51
64
  # @param [Hash] opts the optional parameters
52
65
  # @return [InlineResponse201CombinedSubmission]
53
66
  describe 'expire_combined_submission test' do
@@ -58,10 +71,10 @@ describe 'PDFApi' do
58
71
 
59
72
  # unit tests for expire_submission
60
73
  # Expire a PDF submission
61
- #
62
- # @param submission_id
74
+ #
75
+ # @param submission_id
63
76
  # @param [Hash] opts the optional parameters
64
- # @return [InlineResponse2011Submission]
77
+ # @return [TemplatestemplateIdsubmissionsbatchSubmission]
65
78
  describe 'expire_submission test' do
66
79
  it "should work" do
67
80
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -70,10 +83,10 @@ describe 'PDFApi' do
70
83
 
71
84
  # unit tests for generate_pdf
72
85
  # Generates a new PDF
73
- #
74
- # @param template_id
86
+ #
87
+ # @param template_id
75
88
  # @param [Hash] opts the optional parameters
76
- # @option opts [Data1] :data
89
+ # @option opts [CreateSubmissionBody] :create_submission_body
77
90
  # @return [InlineResponse2011]
78
91
  describe 'generate_pdf test' do
79
92
  it "should work" do
@@ -83,8 +96,8 @@ describe 'PDFApi' do
83
96
 
84
97
  # unit tests for get_combined_submission
85
98
  # Check the status of a combined submission (merged PDFs)
86
- #
87
- # @param combined_submission_id
99
+ #
100
+ # @param combined_submission_id
88
101
  # @param [Hash] opts the optional parameters
89
102
  # @return [InlineResponse201CombinedSubmission]
90
103
  describe 'get_combined_submission test' do
@@ -95,14 +108,27 @@ describe 'PDFApi' do
95
108
 
96
109
  # unit tests for get_submission
97
110
  # Check the status of a PDF
98
- #
99
- # @param submission_id
111
+ #
112
+ # @param submission_id
100
113
  # @param [Hash] opts the optional parameters
101
- # @return [InlineResponse2011Submission]
114
+ # @return [TemplatestemplateIdsubmissionsbatchSubmission]
102
115
  describe 'get_submission test' do
103
116
  it "should work" do
104
117
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
105
118
  end
106
119
  end
107
120
 
121
+ # unit tests for get_templates
122
+ # Get a list of all templates
123
+ #
124
+ # @param [Hash] opts the optional parameters
125
+ # @option opts [Integer] :page Default: 1
126
+ # @option opts [Integer] :per_page Default: 50
127
+ # @return [Array<InlineResponse2001>]
128
+ describe 'get_templates test' do
129
+ it "should work" do
130
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
131
+ end
132
+ end
133
+
108
134
  end
@@ -124,7 +124,7 @@ describe FormAPI::ApiClient do
124
124
  #api_client = FormAPI::ApiClient.new
125
125
  #_model = FormAPI::ModelName.new
126
126
  # update the model attribute below
127
- #_model.id = 1
127
+ #_model.id = 1
128
128
  # update the expected value (hash) below
129
129
  #expected = {id: 1, name: '', tags: []}
130
130
  #expect(api_client.object_to_hash(_model)).to eq(expected)
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for FormAPI::Data
17
+ # Unit tests for FormAPI::CreateCombinedSubmissionBody
18
18
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
19
  # Please update as you see appropriate
20
- describe 'Data' do
20
+ describe 'CreateCombinedSubmissionBody' do
21
21
  before do
22
22
  # run before each test
23
- @instance = FormAPI::Data.new
23
+ @instance = FormAPI::CreateCombinedSubmissionBody.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of Data' do
31
- it 'should create an instance of Data' do
32
- expect(@instance).to be_instance_of(FormAPI::Data)
30
+ describe 'test an instance of CreateCombinedSubmissionBody' do
31
+ it 'should create an instance of CreateCombinedSubmissionBody' do
32
+ expect(@instance).to be_instance_of(FormAPI::CreateCombinedSubmissionBody)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "test"' do
@@ -0,0 +1,54 @@
1
+ =begin
2
+ #API V1
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for FormAPI::CreateSubmissionBatchBody
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'CreateSubmissionBatchBody' do
21
+ before do
22
+ # run before each test
23
+ @instance = FormAPI::CreateSubmissionBatchBody.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of CreateSubmissionBatchBody' do
31
+ it 'should create an instance of CreateSubmissionBatchBody' do
32
+ expect(@instance).to be_instance_of(FormAPI::CreateSubmissionBatchBody)
33
+ end
34
+ end
35
+ describe 'test attribute "test"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "data"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "metadata"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ end
54
+
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for FormAPI::Data1
17
+ # Unit tests for FormAPI::CreateSubmissionBody
18
18
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
19
  # Please update as you see appropriate
20
- describe 'Data1' do
20
+ describe 'CreateSubmissionBody' do
21
21
  before do
22
22
  # run before each test
23
- @instance = FormAPI::Data1.new
23
+ @instance = FormAPI::CreateSubmissionBody.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of Data1' do
31
- it 'should create an instance of Data1' do
32
- expect(@instance).to be_instance_of(FormAPI::Data1)
30
+ describe 'test an instance of CreateSubmissionBody' do
31
+ it 'should create an instance of CreateSubmissionBody' do
32
+ expect(@instance).to be_instance_of(FormAPI::CreateSubmissionBody)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "test"' do