dyspatch_client 2.0.0 → 3.0.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 (102) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +42 -16
  3. data/docs/APIError.md +1 -1
  4. data/docs/Body.md +8 -0
  5. data/docs/Body1.md +8 -0
  6. data/docs/CreatedAt.md +7 -0
  7. data/docs/DraftDescription.md +7 -0
  8. data/docs/DraftId.md +7 -0
  9. data/docs/DraftMetaRead.md +14 -0
  10. data/docs/DraftName.md +7 -0
  11. data/docs/DraftRead.md +15 -0
  12. data/docs/DraftUrl.md +7 -0
  13. data/docs/DraftsApi.md +467 -0
  14. data/docs/DraftsRead.md +9 -0
  15. data/docs/LanguageId.md +7 -0
  16. data/docs/LocalizationId.md +7 -0
  17. data/docs/LocalizationKeyRead.md +9 -0
  18. data/docs/LocalizationMetaRead.md +1 -0
  19. data/docs/LocalizationName.md +7 -0
  20. data/docs/LocalizationUrl.md +7 -0
  21. data/docs/LocalizationsApi.md +8 -11
  22. data/docs/TemplateDescription.md +7 -0
  23. data/docs/TemplateId.md +7 -0
  24. data/docs/TemplateMetaRead.md +1 -1
  25. data/docs/TemplateName.md +7 -0
  26. data/docs/TemplateRead.md +1 -1
  27. data/docs/TemplateUrl.md +7 -0
  28. data/docs/TemplatesApi.md +9 -14
  29. data/docs/TemplatesRead.md +1 -1
  30. data/docs/UpdatedAt.md +7 -0
  31. data/dyspatch_client.gemspec +8 -8
  32. data/lib/dyspatch_client.rb +24 -3
  33. data/lib/dyspatch_client/api/drafts_api.rb +479 -0
  34. data/lib/dyspatch_client/api/localizations_api.rb +23 -22
  35. data/lib/dyspatch_client/api/templates_api.rb +25 -28
  36. data/lib/dyspatch_client/api_client.rb +11 -11
  37. data/lib/dyspatch_client/api_error.rb +3 -3
  38. data/lib/dyspatch_client/configuration.rb +4 -4
  39. data/lib/dyspatch_client/models/api_error.rb +11 -15
  40. data/lib/dyspatch_client/models/body.rb +183 -0
  41. data/lib/dyspatch_client/models/body_1.rb +183 -0
  42. data/lib/dyspatch_client/models/compiled_read.rb +14 -22
  43. data/lib/dyspatch_client/models/created_at.rb +175 -0
  44. data/lib/dyspatch_client/models/cursor.rb +8 -12
  45. data/lib/dyspatch_client/models/draft_description.rb +175 -0
  46. data/lib/dyspatch_client/models/draft_id.rb +175 -0
  47. data/lib/dyspatch_client/models/draft_meta_read.rb +244 -0
  48. data/lib/dyspatch_client/models/draft_name.rb +175 -0
  49. data/lib/dyspatch_client/models/draft_read.rb +255 -0
  50. data/lib/dyspatch_client/models/draft_url.rb +175 -0
  51. data/lib/dyspatch_client/models/drafts_read.rb +196 -0
  52. data/lib/dyspatch_client/models/language_id.rb +175 -0
  53. data/lib/dyspatch_client/models/localization_id.rb +175 -0
  54. data/lib/dyspatch_client/models/localization_key_read.rb +192 -0
  55. data/lib/dyspatch_client/models/localization_meta_read.rb +20 -15
  56. data/lib/dyspatch_client/models/localization_name.rb +175 -0
  57. data/lib/dyspatch_client/models/localization_read.rb +8 -13
  58. data/lib/dyspatch_client/models/localization_url.rb +175 -0
  59. data/lib/dyspatch_client/models/template_description.rb +175 -0
  60. data/lib/dyspatch_client/models/template_id.rb +175 -0
  61. data/lib/dyspatch_client/models/template_meta_read.rb +8 -13
  62. data/lib/dyspatch_client/models/template_name.rb +175 -0
  63. data/lib/dyspatch_client/models/template_read.rb +8 -13
  64. data/lib/dyspatch_client/models/template_url.rb +175 -0
  65. data/lib/dyspatch_client/models/templates_read.rb +8 -13
  66. data/lib/dyspatch_client/models/updated_at.rb +175 -0
  67. data/lib/dyspatch_client/version.rb +4 -4
  68. data/spec/api/drafts_api_spec.rb +138 -0
  69. data/spec/api/localizations_api_spec.rb +6 -7
  70. data/spec/api/templates_api_spec.rb +6 -8
  71. data/spec/api_client_spec.rb +37 -37
  72. data/spec/configuration_spec.rb +11 -11
  73. data/spec/models/api_error_spec.rb +10 -11
  74. data/spec/models/body_1_spec.rb +41 -0
  75. data/spec/models/body_spec.rb +41 -0
  76. data/spec/models/compiled_read_spec.rb +8 -9
  77. data/spec/models/created_at_spec.rb +35 -0
  78. data/spec/models/cursor_spec.rb +5 -6
  79. data/spec/models/draft_description_spec.rb +35 -0
  80. data/spec/models/draft_id_spec.rb +35 -0
  81. data/spec/models/draft_meta_read_spec.rb +77 -0
  82. data/spec/models/draft_name_spec.rb +35 -0
  83. data/spec/models/draft_read_spec.rb +83 -0
  84. data/spec/models/draft_url_spec.rb +35 -0
  85. data/spec/models/drafts_read_spec.rb +47 -0
  86. data/spec/models/language_id_spec.rb +35 -0
  87. data/spec/models/localization_id_spec.rb +35 -0
  88. data/spec/models/localization_key_read_spec.rb +47 -0
  89. data/spec/models/localization_meta_read_spec.rb +13 -8
  90. data/spec/models/localization_name_spec.rb +35 -0
  91. data/spec/models/localization_read_spec.rb +11 -12
  92. data/spec/models/localization_url_spec.rb +35 -0
  93. data/spec/models/template_description_spec.rb +35 -0
  94. data/spec/models/template_id_spec.rb +35 -0
  95. data/spec/models/template_meta_read_spec.rb +10 -11
  96. data/spec/models/template_name_spec.rb +35 -0
  97. data/spec/models/template_read_spec.rb +11 -12
  98. data/spec/models/template_url_spec.rb +35 -0
  99. data/spec/models/templates_read_spec.rb +5 -6
  100. data/spec/models/updated_at_spec.rb +35 -0
  101. data/spec/spec_helper.rb +3 -3
  102. metadata +106 -22
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Dyspatch API
3
3
 
4
- ## Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
4
+ ## Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for the following languages and web frameworks: - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
5
5
 
6
- OpenAPI spec version: 2019.03
6
+ OpenAPI spec version: 2019.10
7
7
  Contact: support@dyspatch.io
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.9
10
10
 
11
11
  =end
12
12
 
@@ -37,10 +37,9 @@ describe 'TemplatesApi' do
37
37
  # Gets a list of Template Metadata objects for all templates. Up to 25 results returned before results are paginated.
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [String] :cursor A cursor value used to retrieve a specific page from a paginated result set.
40
- # @option opts [String] :accept A version of the API that should be used for the request. For example, to use version "2019.03", set the value to "application/vnd.dyspatch.2019.03+json"
41
40
  # @return [TemplatesRead]
42
41
  describe 'templates_get test' do
43
- it "should work" do
42
+ it 'should work' do
44
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
44
  end
46
45
  end
@@ -49,12 +48,11 @@ describe 'TemplatesApi' do
49
48
  # Get Template by ID
50
49
  # Gets a template object with the matching ID. If the template has published content the "compiled" field will contain the template .
51
50
  # @param template_id A template ID
51
+ # @param target_language The type of templating language to compile as. Should only be used for visual templates.
52
52
  # @param [Hash] opts the optional parameters
53
- # @option opts [String] :target_language The type of templating language to compile as. Should only be used for visual templates.
54
- # @option opts [String] :accept A version of the API that should be used for the request. For example, to use version "2019.03", set the value to "application/vnd.dyspatch.2019.03+json"
55
53
  # @return [TemplateRead]
56
54
  describe 'templates_template_id_get test' do
57
- it "should work" do
55
+ it 'should work' do
58
56
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
57
  end
60
58
  end
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Dyspatch API
3
3
 
4
- ## Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
4
+ ## Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for the following languages and web frameworks: - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
5
5
 
6
- OpenAPI spec version: 2019.03
6
+ OpenAPI spec version: 2019.10
7
7
  Contact: support@dyspatch.io
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.9
10
10
 
11
11
  =end
12
12
 
@@ -51,11 +51,11 @@ describe DyspatchClient::ApiClient do
51
51
  end
52
52
  end
53
53
 
54
- describe "params_encoding in #build_request" do
54
+ describe 'params_encoding in #build_request' do
55
55
  let(:config) { DyspatchClient::Configuration.new }
56
56
  let(:api_client) { DyspatchClient::ApiClient.new(config) }
57
57
 
58
- it "defaults to nil" do
58
+ it 'defaults to nil' do
59
59
  expect(DyspatchClient::Configuration.default.params_encoding).to eq(nil)
60
60
  expect(config.params_encoding).to eq(nil)
61
61
 
@@ -63,18 +63,18 @@ describe DyspatchClient::ApiClient do
63
63
  expect(request.options[:params_encoding]).to eq(nil)
64
64
  end
65
65
 
66
- it "can be customized" do
66
+ it 'can be customized' do
67
67
  config.params_encoding = :multi
68
68
  request = api_client.build_request(:get, '/test')
69
69
  expect(request.options[:params_encoding]).to eq(:multi)
70
70
  end
71
71
  end
72
72
 
73
- describe "timeout in #build_request" do
73
+ describe 'timeout in #build_request' do
74
74
  let(:config) { DyspatchClient::Configuration.new }
75
75
  let(:api_client) { DyspatchClient::ApiClient.new(config) }
76
76
 
77
- it "defaults to 0" do
77
+ it 'defaults to 0' do
78
78
  expect(DyspatchClient::Configuration.default.timeout).to eq(0)
79
79
  expect(config.timeout).to eq(0)
80
80
 
@@ -82,88 +82,88 @@ describe DyspatchClient::ApiClient do
82
82
  expect(request.options[:timeout]).to eq(0)
83
83
  end
84
84
 
85
- it "can be customized" do
85
+ it 'can be customized' do
86
86
  config.timeout = 100
87
87
  request = api_client.build_request(:get, '/test')
88
88
  expect(request.options[:timeout]).to eq(100)
89
89
  end
90
90
  end
91
91
 
92
- describe "#deserialize" do
92
+ describe '#deserialize' do
93
93
  it "handles Array<Integer>" do
94
94
  api_client = DyspatchClient::ApiClient.new
95
- headers = {'Content-Type' => 'application/json'}
95
+ headers = { 'Content-Type' => 'application/json' }
96
96
  response = double('response', headers: headers, body: '[12, 34]')
97
97
  data = api_client.deserialize(response, 'Array<Integer>')
98
98
  expect(data).to be_instance_of(Array)
99
99
  expect(data).to eq([12, 34])
100
100
  end
101
101
 
102
- it "handles Array<Array<Integer>>" do
102
+ it 'handles Array<Array<Integer>>' do
103
103
  api_client = DyspatchClient::ApiClient.new
104
- headers = {'Content-Type' => 'application/json'}
104
+ headers = { 'Content-Type' => 'application/json' }
105
105
  response = double('response', headers: headers, body: '[[12, 34], [56]]')
106
106
  data = api_client.deserialize(response, 'Array<Array<Integer>>')
107
107
  expect(data).to be_instance_of(Array)
108
108
  expect(data).to eq([[12, 34], [56]])
109
109
  end
110
110
 
111
- it "handles Hash<String, String>" do
111
+ it 'handles Hash<String, String>' do
112
112
  api_client = DyspatchClient::ApiClient.new
113
- headers = {'Content-Type' => 'application/json'}
113
+ headers = { 'Content-Type' => 'application/json' }
114
114
  response = double('response', headers: headers, body: '{"message": "Hello"}')
115
115
  data = api_client.deserialize(response, 'Hash<String, String>')
116
116
  expect(data).to be_instance_of(Hash)
117
- expect(data).to eq({:message => 'Hello'})
117
+ expect(data).to eq(:message => 'Hello')
118
118
  end
119
119
  end
120
120
 
121
121
  describe "#object_to_hash" do
122
- it "ignores nils and includes empty arrays" do
122
+ it 'ignores nils and includes empty arrays' do
123
123
  # uncomment below to test object_to_hash for model
124
- #api_client = DyspatchClient::ApiClient.new
125
- #_model = DyspatchClient::ModelName.new
124
+ # api_client = DyspatchClient::ApiClient.new
125
+ # _model = DyspatchClient::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
- #expected = {id: 1, name: '', tags: []}
130
- #expect(api_client.object_to_hash(_model)).to eq(expected)
129
+ # expected = {id: 1, name: '', tags: []}
130
+ # expect(api_client.object_to_hash(_model)).to eq(expected)
131
131
  end
132
132
  end
133
133
 
134
- describe "#build_collection_param" do
134
+ describe '#build_collection_param' do
135
135
  let(:param) { ['aa', 'bb', 'cc'] }
136
136
  let(:api_client) { DyspatchClient::ApiClient.new }
137
137
 
138
- it "works for csv" do
138
+ it 'works for csv' do
139
139
  expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
140
140
  end
141
141
 
142
- it "works for ssv" do
142
+ it 'works for ssv' do
143
143
  expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
144
144
  end
145
145
 
146
- it "works for tsv" do
146
+ it 'works for tsv' do
147
147
  expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
148
148
  end
149
149
 
150
- it "works for pipes" do
150
+ it 'works for pipes' do
151
151
  expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
152
152
  end
153
153
 
154
- it "works for multi" do
154
+ it 'works for multi' do
155
155
  expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
156
156
  end
157
157
 
158
- it "fails for invalid collection format" do
158
+ it 'fails for invalid collection format' do
159
159
  expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
160
160
  end
161
161
  end
162
162
 
163
- describe "#json_mime?" do
163
+ describe '#json_mime?' do
164
164
  let(:api_client) { DyspatchClient::ApiClient.new }
165
165
 
166
- it "works" do
166
+ it 'works' do
167
167
  expect(api_client.json_mime?(nil)).to eq false
168
168
  expect(api_client.json_mime?('')).to eq false
169
169
 
@@ -177,10 +177,10 @@ describe DyspatchClient::ApiClient do
177
177
  end
178
178
  end
179
179
 
180
- describe "#select_header_accept" do
180
+ describe '#select_header_accept' do
181
181
  let(:api_client) { DyspatchClient::ApiClient.new }
182
182
 
183
- it "works" do
183
+ it 'works' do
184
184
  expect(api_client.select_header_accept(nil)).to be_nil
185
185
  expect(api_client.select_header_accept([])).to be_nil
186
186
 
@@ -193,10 +193,10 @@ describe DyspatchClient::ApiClient do
193
193
  end
194
194
  end
195
195
 
196
- describe "#select_header_content_type" do
196
+ describe '#select_header_content_type' do
197
197
  let(:api_client) { DyspatchClient::ApiClient.new }
198
198
 
199
- it "works" do
199
+ it 'works' do
200
200
  expect(api_client.select_header_content_type(nil)).to eq('application/json')
201
201
  expect(api_client.select_header_content_type([])).to eq('application/json')
202
202
 
@@ -208,10 +208,10 @@ describe DyspatchClient::ApiClient do
208
208
  end
209
209
  end
210
210
 
211
- describe "#sanitize_filename" do
211
+ describe '#sanitize_filename' do
212
212
  let(:api_client) { DyspatchClient::ApiClient.new }
213
213
 
214
- it "works" do
214
+ it 'works' do
215
215
  expect(api_client.sanitize_filename('sun')).to eq('sun')
216
216
  expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
217
217
  expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Dyspatch API
3
3
 
4
- ## Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
4
+ ## Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for the following languages and web frameworks: - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
5
5
 
6
- OpenAPI spec version: 2019.03
6
+ OpenAPI spec version: 2019.10
7
7
  Contact: support@dyspatch.io
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.9
10
10
 
11
11
  =end
12
12
 
@@ -17,25 +17,25 @@ describe DyspatchClient::Configuration do
17
17
 
18
18
  before(:each) do
19
19
  # uncomment below to setup host and base_path
20
- #require 'URI'
21
- #uri = URI.parse("https://api.dyspatch.io")
22
- #DyspatchClient.configure do |c|
23
- # c.host = uri.host
24
- # c.base_path = uri.path
25
- #end
20
+ # require 'URI'
21
+ # uri = URI.parse("https://api.dyspatch.io")
22
+ # DyspatchClient.configure do |c|
23
+ # c.host = uri.host
24
+ # c.base_path = uri.path
25
+ # end
26
26
  end
27
27
 
28
28
  describe '#base_url' do
29
29
  it 'should have the default value' do
30
30
  # uncomment below to test default value of the base path
31
- #expect(config.base_url).to eq("https://api.dyspatch.io")
31
+ # expect(config.base_url).to eq("https://api.dyspatch.io")
32
32
  end
33
33
 
34
34
  it 'should remove trailing slashes' do
35
35
  [nil, '', '/', '//'].each do |base_path|
36
36
  config.base_path = base_path
37
37
  # uncomment below to test trailing slashes
38
- #expect(config.base_url).to eq("https://api.dyspatch.io")
38
+ # expect(config.base_url).to eq("https://api.dyspatch.io")
39
39
  end
40
40
  end
41
41
  end
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Dyspatch API
3
3
 
4
- ## Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
4
+ ## Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for the following languages and web frameworks: - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
5
5
 
6
- OpenAPI spec version: 2019.03
6
+ OpenAPI spec version: 2019.10
7
7
  Contact: support@dyspatch.io
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.9
10
10
 
11
11
  =end
12
12
 
@@ -34,25 +34,24 @@ describe 'APIError' do
34
34
  end
35
35
  describe 'test attribute "code"' do
36
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', ["server_error", "invalid_parameter", "invalid_body", "invalid_request", "unauthorized", "unauthenticated", "not_found", "rate_limited"])
39
- #validator.allowable_values.each do |value|
40
- # expect { @instance.code = value }.not_to raise_error
41
- #end
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["server_error", "invalid_parameter", "invalid_body", "invalid_request", "unauthorized", "unauthenticated", "not_found", "rate_limited"])
39
+ # validator.allowable_values.each do |value|
40
+ # expect { @instance.code = value }.not_to raise_error
41
+ # end
42
42
  end
43
43
  end
44
44
 
45
45
  describe 'test attribute "message"' do
46
46
  it 'should work' do
47
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
48
48
  end
49
49
  end
50
50
 
51
51
  describe 'test attribute "parameter"' do
52
52
  it 'should work' do
53
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
54
  end
55
55
  end
56
56
 
57
57
  end
58
-
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #Dyspatch API
3
+
4
+ ## Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for the following languages and web frameworks: - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
5
+
6
+ OpenAPI spec version: 2019.10
7
+ Contact: support@dyspatch.io
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.9
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for DyspatchClient::Body1
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'Body1' do
21
+ before do
22
+ # run before each test
23
+ @instance = DyspatchClient::Body1.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Body1' do
31
+ it 'should create an instance of Body1' do
32
+ expect(@instance).to be_instance_of(DyspatchClient::Body1)
33
+ end
34
+ end
35
+ describe 'test attribute "name"' 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
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #Dyspatch API
3
+
4
+ ## Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for the following languages and web frameworks: - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
5
+
6
+ OpenAPI spec version: 2019.10
7
+ Contact: support@dyspatch.io
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.9
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for DyspatchClient::Body
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'Body' do
21
+ before do
22
+ # run before each test
23
+ @instance = DyspatchClient::Body.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Body' do
31
+ it 'should create an instance of Body' do
32
+ expect(@instance).to be_instance_of(DyspatchClient::Body)
33
+ end
34
+ end
35
+ describe 'test attribute "name"' 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
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Dyspatch API
3
3
 
4
- ## Introduction The Dyspatch API is based on the REST paradigm, and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs, and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for popular languages and web frameworks. - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
4
+ ## Introduction The Dyspatch API is based on the REST paradigm and features resource based URLs with standard HTTP response codes to indicate errors. We use standard HTTP authentication and request verbs and all responses are JSON formatted. See our [Implementation Guide](https://docs.dyspatch.io/development/implementing_dyspatch/) for more details on how to implement Dyspatch. ## API Client Libraries Dyspatch provides API Clients for the following languages and web frameworks: - [Java](https://github.com/getdyspatch/dyspatch-java) - [Javascript](https://github.com/getdyspatch/dyspatch-javascript) - [Python](https://github.com/getdyspatch/dyspatch-python) - [C#](https://github.com/getdyspatch/dyspatch-dotnet) - [Go](https://github.com/getdyspatch/dyspatch-golang) - [Ruby](https://github.com/getdyspatch/dyspatch-ruby)
5
5
 
6
- OpenAPI spec version: 2019.03
6
+ OpenAPI spec version: 2019.10
7
7
  Contact: support@dyspatch.io
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.9
10
10
 
11
11
  =end
12
12
 
@@ -34,33 +34,32 @@ describe 'CompiledRead' do
34
34
  end
35
35
  describe 'test attribute "sender"' do
36
36
  it 'should work' do
37
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
41
  describe 'test attribute "reply_to"' do
42
42
  it 'should work' do
43
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
47
  describe 'test attribute "subject"' do
48
48
  it 'should work' do
49
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
53
  describe 'test attribute "html"' do
54
54
  it 'should work' do
55
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
57
57
  end
58
58
 
59
59
  describe 'test attribute "text"' do
60
60
  it 'should work' do
61
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
62
  end
63
63
  end
64
64
 
65
65
  end
66
-