form_api 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/{.swagger-codegen-ignore → .openapi-generator-ignore} +3 -3
- data/.openapi-generator/VERSION +1 -0
- data/.rubocop.yml +154 -0
- data/Gemfile.lock +15 -16
- data/README.md +30 -28
- data/Rakefile +2 -0
- data/docs/{InlineResponse422.md → AuthenticationError.md} +3 -3
- data/docs/{InlineResponse401.md → AuthenticationSuccessResponse.md} +2 -2
- data/docs/CombinedSubmission.md +14 -0
- data/docs/CombinedSubmissionData.md +11 -0
- data/docs/CreateCombinedSubmissionResponse.md +10 -0
- data/docs/CreateSubmissionBatchResponse.md +12 -0
- data/docs/CreateSubmissionData.md +12 -0
- data/docs/CreateSubmissionDataBatchRequest.md +13 -0
- data/docs/CreateSubmissionResponse.md +10 -0
- data/docs/CreateSubmissionResponse1.md +10 -0
- data/docs/{InlineResponse200.md → Error.md} +3 -2
- data/docs/{InlineResponse400.md → InvalidRequest.md} +3 -3
- data/docs/PDFApi.md +148 -64
- data/docs/Submission.md +16 -0
- data/docs/SubmissionBatch.md +16 -0
- data/docs/SubmissionBatchData.md +11 -0
- data/docs/Template.md +21 -0
- data/form_api.gemspec +6 -11
- data/git_push.sh +3 -3
- data/lib/form_api.rb +22 -15
- data/lib/form_api/api/client.rb +91 -38
- data/lib/form_api/api/pdf_api.rb +222 -109
- data/lib/form_api/api_client.rb +13 -13
- data/lib/form_api/api_error.rb +3 -3
- data/lib/form_api/configuration.rb +26 -5
- data/lib/form_api/models/{inline_response_201_1.rb → authentication_error.rb} +25 -29
- data/lib/form_api/models/{inline_response_200.rb → authentication_success_response.rb} +15 -24
- data/lib/form_api/models/{inline_response_201_combined_submission.rb → combined_submission.rb} +42 -66
- data/lib/form_api/models/{create_combined_submission_body.rb → combined_submission_data.rb} +13 -18
- data/lib/form_api/models/{inline_response_201.rb → create_combined_submission_response.rb} +37 -35
- data/lib/form_api/models/create_submission_batch_response.rb +257 -0
- data/lib/form_api/models/{create_submission_batch_body.rb → create_submission_data.rb} +32 -19
- data/lib/form_api/models/{create_submission_body.rb → create_submission_data_batch_request.rb} +45 -18
- data/lib/form_api/models/create_submission_response.rb +237 -0
- data/lib/form_api/models/create_submission_response1.rb +237 -0
- data/lib/form_api/models/{inline_response_400.rb → error.rb} +17 -21
- data/lib/form_api/models/{inline_response_422.rb → invalid_request.rb} +17 -21
- data/lib/form_api/models/{templatestemplate_idsubmissionsbatch_submission.rb → submission.rb} +40 -26
- data/lib/form_api/models/submission_batch.rb +291 -0
- data/lib/form_api/models/{inline_response_401.rb → submission_batch_data.rb} +48 -24
- data/lib/form_api/models/{inline_response_200_1.rb → template.rb} +88 -152
- data/lib/form_api/version.rb +4 -4
- data/spec/api/client_spec.rb +197 -23
- data/spec/api/pdf_api_spec.rb +168 -63
- data/spec/api_client_spec.rb +37 -37
- data/spec/configuration_spec.rb +11 -11
- data/spec/models/authentication_error_spec.rb +51 -0
- data/spec/models/authentication_success_response_spec.rb +45 -0
- data/spec/models/combined_submission_data_spec.rb +59 -0
- data/spec/models/combined_submission_spec.rb +81 -0
- data/spec/models/create_combined_submission_response_spec.rb +57 -0
- data/spec/models/create_submission_batch_response_spec.rb +69 -0
- data/spec/models/create_submission_data_batch_request_spec.rb +71 -0
- data/spec/models/create_submission_data_spec.rb +65 -0
- data/spec/models/create_submission_response1_spec.rb +57 -0
- data/spec/models/create_submission_response_spec.rb +57 -0
- data/spec/models/error_spec.rb +51 -0
- data/spec/models/invalid_request_spec.rb +51 -0
- data/spec/models/submission_batch_data_spec.rb +59 -0
- data/spec/models/submission_batch_spec.rb +93 -0
- data/spec/models/submission_spec.rb +93 -0
- data/spec/models/template_spec.rb +123 -0
- data/spec/spec_helper.rb +3 -14
- metadata +70 -95
- data/.swagger-codegen/VERSION +0 -1
- data/docs/CreateCombinedSubmissionBody.md +0 -11
- data/docs/CreateSubmissionBatchBody.md +0 -10
- data/docs/CreateSubmissionBody.md +0 -10
- data/docs/InlineResponse2001.md +0 -21
- data/docs/InlineResponse201.md +0 -9
- data/docs/InlineResponse2011.md +0 -9
- data/docs/InlineResponse201CombinedSubmission.md +0 -14
- data/docs/TemplatestemplateIdsubmissionsbatchSubmission.md +0 -14
- data/spec/models/create_combined_submission_body_spec.rb +0 -60
- data/spec/models/create_submission_batch_body_spec.rb +0 -54
- data/spec/models/create_submission_body_spec.rb +0 -54
- data/spec/models/inline_response_200_1_spec.rb +0 -124
- data/spec/models/inline_response_200_spec.rb +0 -46
- data/spec/models/inline_response_201_1_spec.rb +0 -52
- data/spec/models/inline_response_201_combined_submission_spec.rb +0 -82
- data/spec/models/inline_response_201_spec.rb +0 -52
- data/spec/models/inline_response_400_spec.rb +0 -52
- data/spec/models/inline_response_401_spec.rb +0 -42
- data/spec/models/inline_response_422_spec.rb +0 -52
- data/spec/models/templatestemplate_idsubmissionsbatch_submission_spec.rb +0 -82
- data/spec/vcr_cassettes/FormAPI_Client/should_generate_a_PDF_and_wait_for_the_submission_to_be_processed.yml +0 -127
@@ -1,52 +0,0 @@
|
|
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::InlineResponse2011
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'InlineResponse2011' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = FormAPI::InlineResponse2011.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of InlineResponse2011' do
|
31
|
-
it 'should create an instance of InlineResponse2011' do
|
32
|
-
expect(@instance).to be_instance_of(FormAPI::InlineResponse2011)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "status"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["success", "error"])
|
39
|
-
#validator.allowable_values.each do |value|
|
40
|
-
# expect { @instance.status = value }.not_to raise_error
|
41
|
-
#end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
describe 'test attribute "submission"' do
|
46
|
-
it 'should work' do
|
47
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
end
|
52
|
-
|
@@ -1,82 +0,0 @@
|
|
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::InlineResponse201CombinedSubmission
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'InlineResponse201CombinedSubmission' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = FormAPI::InlineResponse201CombinedSubmission.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of InlineResponse201CombinedSubmission' do
|
31
|
-
it 'should create an instance of InlineResponse201CombinedSubmission' do
|
32
|
-
expect(@instance).to be_instance_of(FormAPI::InlineResponse201CombinedSubmission)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "id"' 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 "expired"' 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 "expires_at"' 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
|
-
describe 'test attribute "state"' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pending", "processed", "error"])
|
57
|
-
#validator.allowable_values.each do |value|
|
58
|
-
# expect { @instance.state = value }.not_to raise_error
|
59
|
-
#end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
describe 'test attribute "metadata"' do
|
64
|
-
it 'should work' do
|
65
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
describe 'test attribute "submission_ids"' do
|
70
|
-
it 'should work' do
|
71
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
describe 'test attribute "download_url"' do
|
76
|
-
it 'should work' do
|
77
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
|
-
end
|
82
|
-
|
@@ -1,52 +0,0 @@
|
|
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::InlineResponse201
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'InlineResponse201' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = FormAPI::InlineResponse201.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of InlineResponse201' do
|
31
|
-
it 'should create an instance of InlineResponse201' do
|
32
|
-
expect(@instance).to be_instance_of(FormAPI::InlineResponse201)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "status"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["success", "error"])
|
39
|
-
#validator.allowable_values.each do |value|
|
40
|
-
# expect { @instance.status = value }.not_to raise_error
|
41
|
-
#end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
describe 'test attribute "combined_submission"' do
|
46
|
-
it 'should work' do
|
47
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
end
|
52
|
-
|
@@ -1,52 +0,0 @@
|
|
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::InlineResponse400
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'InlineResponse400' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = FormAPI::InlineResponse400.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of InlineResponse400' do
|
31
|
-
it 'should create an instance of InlineResponse400' do
|
32
|
-
expect(@instance).to be_instance_of(FormAPI::InlineResponse400)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "status"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["error"])
|
39
|
-
#validator.allowable_values.each do |value|
|
40
|
-
# expect { @instance.status = value }.not_to raise_error
|
41
|
-
#end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
describe 'test attribute "error"' do
|
46
|
-
it 'should work' do
|
47
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
end
|
52
|
-
|
@@ -1,42 +0,0 @@
|
|
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::InlineResponse401
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'InlineResponse401' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = FormAPI::InlineResponse401.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of InlineResponse401' do
|
31
|
-
it 'should create an instance of InlineResponse401' do
|
32
|
-
expect(@instance).to be_instance_of(FormAPI::InlineResponse401)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "error"' 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
|
-
end
|
42
|
-
|
@@ -1,52 +0,0 @@
|
|
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::InlineResponse422
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'InlineResponse422' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = FormAPI::InlineResponse422.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of InlineResponse422' do
|
31
|
-
it 'should create an instance of InlineResponse422' do
|
32
|
-
expect(@instance).to be_instance_of(FormAPI::InlineResponse422)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "status"' do
|
36
|
-
it 'should work' do
|
37
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["error"])
|
39
|
-
#validator.allowable_values.each do |value|
|
40
|
-
# expect { @instance.status = value }.not_to raise_error
|
41
|
-
#end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
describe 'test attribute "errors"' do
|
46
|
-
it 'should work' do
|
47
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
end
|
52
|
-
|
@@ -1,82 +0,0 @@
|
|
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::TemplatestemplateIdsubmissionsbatchSubmission
|
18
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
-
# Please update as you see appropriate
|
20
|
-
describe 'TemplatestemplateIdsubmissionsbatchSubmission' do
|
21
|
-
before do
|
22
|
-
# run before each test
|
23
|
-
@instance = FormAPI::TemplatestemplateIdsubmissionsbatchSubmission.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
29
|
-
|
30
|
-
describe 'test an instance of TemplatestemplateIdsubmissionsbatchSubmission' do
|
31
|
-
it 'should create an instance of TemplatestemplateIdsubmissionsbatchSubmission' do
|
32
|
-
expect(@instance).to be_instance_of(FormAPI::TemplatestemplateIdsubmissionsbatchSubmission)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
describe 'test attribute "id"' 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 "test"' 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 "expired"' 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
|
-
describe 'test attribute "expires_at"' do
|
54
|
-
it 'should work' do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
describe 'test attribute "state"' do
|
60
|
-
it 'should work' do
|
61
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
-
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pending", "processed", "invalid_data", "error", "image_download_failed", "image_processing_failed"])
|
63
|
-
#validator.allowable_values.each do |value|
|
64
|
-
# expect { @instance.state = value }.not_to raise_error
|
65
|
-
#end
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
describe 'test attribute "metadata"' do
|
70
|
-
it 'should work' do
|
71
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
describe 'test attribute "download_url"' do
|
76
|
-
it 'should work' do
|
77
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
|
-
end
|
82
|
-
|
@@ -1,127 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: https://app.formapi.io/api/v1/templates/6zz3dYRYM67fxMXA/submissions
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: '{"data":{"first_name":"John","last_name":"Smith","favorite_color":"Blue"}}'
|
9
|
-
headers:
|
10
|
-
User-Agent:
|
11
|
-
- ruby-swagger-0.1.4
|
12
|
-
Content-Type:
|
13
|
-
- application/json
|
14
|
-
Accept:
|
15
|
-
- application/json
|
16
|
-
Authorization:
|
17
|
-
- Basic eVJhYVI5Sm1UUHRHWDdFTjpJQjNUUmtTZG00ZjJCZHRVX0QzWWd4amRNQjdsLXIyZk9ndnhEMVl6d2Vj
|
18
|
-
Expect:
|
19
|
-
- ''
|
20
|
-
response:
|
21
|
-
status:
|
22
|
-
code: 201
|
23
|
-
message: Created
|
24
|
-
headers:
|
25
|
-
Date:
|
26
|
-
- Mon, 23 Oct 2017 08:53:50 GMT
|
27
|
-
Content-Type:
|
28
|
-
- application/json; charset=utf-8
|
29
|
-
Transfer-Encoding:
|
30
|
-
- chunked
|
31
|
-
Connection:
|
32
|
-
- keep-alive
|
33
|
-
Set-Cookie:
|
34
|
-
- __cfduid=d4d53a9027be371a677906f589a30f7c41508748829; expires=Tue, 23-Oct-18
|
35
|
-
08:53:49 GMT; path=/; domain=.formapi.io; HttpOnly; Secure
|
36
|
-
X-Frame-Options:
|
37
|
-
- SAMEORIGIN
|
38
|
-
X-Xss-Protection:
|
39
|
-
- 1; mode=block
|
40
|
-
X-Content-Type-Options:
|
41
|
-
- nosniff
|
42
|
-
Etag:
|
43
|
-
- W/"eb69a8124689ebf40ff6462a48cb9abd"
|
44
|
-
Cache-Control:
|
45
|
-
- max-age=0, private, must-revalidate
|
46
|
-
X-Request-Id:
|
47
|
-
- c9a812dd-2625-48f1-94f1-906a0f654da4
|
48
|
-
X-Runtime:
|
49
|
-
- '0.172181'
|
50
|
-
Vary:
|
51
|
-
- Origin
|
52
|
-
Via:
|
53
|
-
- 1.1 vegur
|
54
|
-
Strict-Transport-Security:
|
55
|
-
- max-age=15552000; includeSubDomains; preload
|
56
|
-
Server:
|
57
|
-
- cloudflare-nginx
|
58
|
-
Cf-Ray:
|
59
|
-
- 3b2377d6ddec3108-SIN
|
60
|
-
body:
|
61
|
-
encoding: UTF-8
|
62
|
-
string: '{"status":"success","submission":{"state":"pending","test":true,"expired":false,"expires_at":null,"metadata":{},"id":"eyR4KFkaYKHztMdR","download_url":null}}'
|
63
|
-
http_version:
|
64
|
-
recorded_at: Mon, 23 Oct 2017 08:53:51 GMT
|
65
|
-
- request:
|
66
|
-
method: get
|
67
|
-
uri: https://app.formapi.io/api/v1/submissions/eyR4KFkaYKHztMdR
|
68
|
-
body:
|
69
|
-
encoding: US-ASCII
|
70
|
-
string: ''
|
71
|
-
headers:
|
72
|
-
User-Agent:
|
73
|
-
- ruby-swagger-0.1.4
|
74
|
-
Content-Type:
|
75
|
-
- application/json
|
76
|
-
Accept:
|
77
|
-
- application/json
|
78
|
-
Authorization:
|
79
|
-
- Basic eVJhYVI5Sm1UUHRHWDdFTjpJQjNUUmtTZG00ZjJCZHRVX0QzWWd4amRNQjdsLXIyZk9ndnhEMVl6d2Vj
|
80
|
-
Expect:
|
81
|
-
- ''
|
82
|
-
response:
|
83
|
-
status:
|
84
|
-
code: 200
|
85
|
-
message: OK
|
86
|
-
headers:
|
87
|
-
Date:
|
88
|
-
- Mon, 23 Oct 2017 08:53:51 GMT
|
89
|
-
Content-Type:
|
90
|
-
- application/json; charset=utf-8
|
91
|
-
Transfer-Encoding:
|
92
|
-
- chunked
|
93
|
-
Connection:
|
94
|
-
- keep-alive
|
95
|
-
Set-Cookie:
|
96
|
-
- __cfduid=d7142a5733640fb24ab3761cc7bee67a81508748831; expires=Tue, 23-Oct-18
|
97
|
-
08:53:51 GMT; path=/; domain=.formapi.io; HttpOnly; Secure
|
98
|
-
X-Frame-Options:
|
99
|
-
- SAMEORIGIN
|
100
|
-
X-Xss-Protection:
|
101
|
-
- 1; mode=block
|
102
|
-
X-Content-Type-Options:
|
103
|
-
- nosniff
|
104
|
-
Etag:
|
105
|
-
- W/"5cfdc9e8399ed11cb2d8031cbf3f6c8d"
|
106
|
-
Cache-Control:
|
107
|
-
- max-age=0, private, must-revalidate
|
108
|
-
X-Request-Id:
|
109
|
-
- 16162658-cda2-4855-8e86-51e449227d54
|
110
|
-
X-Runtime:
|
111
|
-
- '0.086900'
|
112
|
-
Vary:
|
113
|
-
- Origin
|
114
|
-
Via:
|
115
|
-
- 1.1 vegur
|
116
|
-
Strict-Transport-Security:
|
117
|
-
- max-age=15552000; includeSubDomains; preload
|
118
|
-
Server:
|
119
|
-
- cloudflare-nginx
|
120
|
-
Cf-Ray:
|
121
|
-
- 3b2377e26c733108-SIN
|
122
|
-
body:
|
123
|
-
encoding: UTF-8
|
124
|
-
string: '{"state":"processed","test":true,"expired":false,"expires_at":"2017-10-30T08:53:50.350Z","metadata":{},"id":"eyR4KFkaYKHztMdR","download_url":"https://formapi-docs.s3.amazonaws.com/store/submissions/eyR4KFkaYKHztMdR/20171023085350-eyR4KFka.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJMQF3V7PUSLOCZYA%2F20171023%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20171023T085351Z&X-Amz-Expires=900&X-Amz-SignedHeaders=host&X-Amz-Signature=e3798e78fdcc1a0293d1b200dd7836eebae74e0c048a1e58e00d64aaf4c9f184"}'
|
125
|
-
http_version:
|
126
|
-
recorded_at: Mon, 23 Oct 2017 08:53:52 GMT
|
127
|
-
recorded_with: VCR 3.0.3
|