dyspatch_client 4.0.0 → 5.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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +8 -8
- data/docs/DraftsApi.md +22 -22
- data/docs/LocalizationMetaRead.md +7 -5
- data/docs/LocalizationRead.md +5 -3
- data/docs/LocalizationsApi.md +3 -3
- data/docs/TemplatesApi.md +6 -6
- data/dyspatch_client.gemspec +4 -4
- data/lib/dyspatch_client.rb +3 -3
- data/lib/dyspatch_client/api/drafts_api.rb +28 -26
- data/lib/dyspatch_client/api/localizations_api.rb +7 -7
- data/lib/dyspatch_client/api/templates_api.rb +10 -10
- data/lib/dyspatch_client/api_client.rb +3 -3
- data/lib/dyspatch_client/api_error.rb +3 -3
- data/lib/dyspatch_client/configuration.rb +3 -3
- data/lib/dyspatch_client/models/api_error.rb +3 -3
- data/lib/dyspatch_client/models/compiled_read.rb +3 -3
- data/lib/dyspatch_client/models/cursor.rb +3 -3
- data/lib/dyspatch_client/models/draft_meta_read.rb +3 -3
- data/lib/dyspatch_client/models/draft_read.rb +3 -3
- data/lib/dyspatch_client/models/drafts_read.rb +3 -3
- data/lib/dyspatch_client/models/inline_object.rb +3 -3
- data/lib/dyspatch_client/models/localization_key_read.rb +3 -3
- data/lib/dyspatch_client/models/localization_meta_read.rb +35 -23
- data/lib/dyspatch_client/models/localization_read.rb +26 -14
- data/lib/dyspatch_client/models/template_meta_read.rb +3 -3
- data/lib/dyspatch_client/models/template_read.rb +3 -3
- data/lib/dyspatch_client/models/templates_read.rb +3 -3
- data/lib/dyspatch_client/version.rb +4 -4
- data/spec/api/drafts_api_spec.rb +11 -11
- data/spec/api/localizations_api_spec.rb +3 -3
- data/spec/api/templates_api_spec.rb +4 -4
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +13 -11
- data/spec/integration_spec.rb +1 -1
- data/spec/models/api_error_spec.rb +2 -2
- data/spec/models/compiled_read_spec.rb +2 -2
- data/spec/models/cursor_spec.rb +2 -2
- data/spec/models/draft_meta_read_spec.rb +2 -2
- data/spec/models/draft_read_spec.rb +2 -2
- data/spec/models/drafts_read_spec.rb +2 -2
- data/spec/models/inline_object_spec.rb +2 -2
- data/spec/models/localization_key_read_spec.rb +2 -2
- data/spec/models/localization_meta_read_spec.rb +12 -6
- data/spec/models/localization_read_spec.rb +9 -3
- data/spec/models/template_meta_read_spec.rb +2 -2
- data/spec/models/template_read_spec.rb +2 -2
- data/spec/models/templates_read_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f994478c30fa482f42dc091a09002d4170676e42e285f02a71e2da570129562
|
4
|
+
data.tar.gz: fff7e8579eedf7772ac2ca6f9456f790a47374259af94475e2730de5c74d6a0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ce4334bdf4a25b8751e38c16bf80bec065e8940bc64bae791126caa0b0bd6881588aba90abd258805396467a88c251087ed251dcc19e4676a260d119c9cd063
|
7
|
+
data.tar.gz: 9a98320876eb34ab3aa725d1e9fd6ee19766009128b1677804c8e1cdcf92bcb2e65821984f9bb37e6a569ffad385883a2261a1016e5060cc8096ee5cf594acbc
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
4
4
|
|
5
|
-
- API version:
|
6
|
-
- Package version:
|
5
|
+
- API version: 2020.04
|
6
|
+
- Package version: 5.0.0
|
7
7
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
8
8
|
|
9
9
|
For more information, please visit [https://docs.dyspatch.io](https://docs.dyspatch.io)
|
@@ -43,21 +43,21 @@ gem build dyspatch_client.gemspec
|
|
43
43
|
Then either install the gem locally:
|
44
44
|
|
45
45
|
```shell
|
46
|
-
gem install ./dyspatch_client-
|
46
|
+
gem install ./dyspatch_client-5.0.0.gem
|
47
47
|
```
|
48
|
-
(for development, run `gem install --dev ./dyspatch_client-
|
48
|
+
(for development, run `gem install --dev ./dyspatch_client-5.0.0.gem` to install the development dependencies)
|
49
49
|
|
50
50
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
51
51
|
|
52
52
|
Finally add this to the Gemfile:
|
53
53
|
|
54
|
-
gem 'dyspatch_client', '~>
|
54
|
+
gem 'dyspatch_client', '~> 5.0.0'
|
55
55
|
|
56
56
|
### Install from Git
|
57
57
|
|
58
|
-
If the Ruby gem is hosted at a git repository: https://github.com/
|
58
|
+
If the Ruby gem is hosted at a git repository: https://github.com/getdyspatch/dyspatch-ruby, then add the following in the Gemfile:
|
59
59
|
|
60
|
-
gem 'dyspatch_client', :git => 'https://github.com/
|
60
|
+
gem 'dyspatch_client', :git => 'https://github.com/getdyspatch/dyspatch-ruby.git'
|
61
61
|
|
62
62
|
### Include the Ruby code directly
|
63
63
|
|
@@ -86,7 +86,7 @@ end
|
|
86
86
|
api_instance = DyspatchClient::DraftsApi.new
|
87
87
|
draft_id = 'draft_id_example' # String | A draft ID
|
88
88
|
language_id = 'language_id_example' # String | A language ID (eg: en-US)
|
89
|
-
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"
|
89
|
+
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
90
90
|
|
91
91
|
begin
|
92
92
|
#Remove a localization
|
data/docs/DraftsApi.md
CHANGED
@@ -39,7 +39,7 @@ end
|
|
39
39
|
api_instance = DyspatchClient::DraftsApi.new
|
40
40
|
draft_id = 'draft_id_example' # String | A draft ID
|
41
41
|
language_id = 'language_id_example' # String | A language ID (eg: en-US)
|
42
|
-
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"
|
42
|
+
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
43
43
|
|
44
44
|
begin
|
45
45
|
#Remove a localization
|
@@ -56,7 +56,7 @@ Name | Type | Description | Notes
|
|
56
56
|
------------- | ------------- | ------------- | -------------
|
57
57
|
**draft_id** | **String**| A draft ID |
|
58
58
|
**language_id** | **String**| A language ID (eg: en-US) |
|
59
|
-
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"
|
59
|
+
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
|
60
60
|
|
61
61
|
### Return type
|
62
62
|
|
@@ -96,7 +96,7 @@ end
|
|
96
96
|
api_instance = DyspatchClient::DraftsApi.new
|
97
97
|
draft_id = 'draft_id_example' # String | A draft ID
|
98
98
|
target_language = 'target_language_example' # String | The type of templating language to compile as. Should only be used for visual templates.
|
99
|
-
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"
|
99
|
+
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
100
100
|
|
101
101
|
begin
|
102
102
|
#Get Draft by ID
|
@@ -114,7 +114,7 @@ Name | Type | Description | Notes
|
|
114
114
|
------------- | ------------- | ------------- | -------------
|
115
115
|
**draft_id** | **String**| A draft ID |
|
116
116
|
**target_language** | **String**| The type of templating language to compile as. Should only be used for visual templates. |
|
117
|
-
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"
|
117
|
+
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
|
118
118
|
|
119
119
|
### Return type
|
120
120
|
|
@@ -127,7 +127,7 @@ Name | Type | Description | Notes
|
|
127
127
|
### HTTP request headers
|
128
128
|
|
129
129
|
- **Content-Type**: Not defined
|
130
|
-
- **Accept**: application/vnd.dyspatch.
|
130
|
+
- **Accept**: application/vnd.dyspatch.2020.04+json, */*
|
131
131
|
|
132
132
|
|
133
133
|
## get_draft_localization_keys
|
@@ -136,7 +136,7 @@ Name | Type | Description | Notes
|
|
136
136
|
|
137
137
|
Get localization keys
|
138
138
|
|
139
|
-
Returns the list of values that need to be translated for the draft. Set the `Accept` header to `application/vnd.dyspatch.
|
139
|
+
Returns the list of values that need to be translated for the draft. Set the `Accept` header to `application/vnd.dyspatch.2020.04+json` to get a JSON object, or `text/vnd.dyspatch.2020.04+x-gettext-translation` to get the POT file.
|
140
140
|
|
141
141
|
### Example
|
142
142
|
|
@@ -153,7 +153,7 @@ end
|
|
153
153
|
|
154
154
|
api_instance = DyspatchClient::DraftsApi.new
|
155
155
|
draft_id = 'draft_id_example' # String | A draft ID
|
156
|
-
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"
|
156
|
+
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
157
157
|
|
158
158
|
begin
|
159
159
|
#Get localization keys
|
@@ -170,7 +170,7 @@ end
|
|
170
170
|
Name | Type | Description | Notes
|
171
171
|
------------- | ------------- | ------------- | -------------
|
172
172
|
**draft_id** | **String**| A draft ID |
|
173
|
-
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"
|
173
|
+
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
|
174
174
|
|
175
175
|
### Return type
|
176
176
|
|
@@ -183,7 +183,7 @@ Name | Type | Description | Notes
|
|
183
183
|
### HTTP request headers
|
184
184
|
|
185
185
|
- **Content-Type**: Not defined
|
186
|
-
- **Accept**: application/vnd.dyspatch.
|
186
|
+
- **Accept**: application/vnd.dyspatch.2020.04+json, text/vnd.dyspatch.2020.04+x-gettext-translation
|
187
187
|
|
188
188
|
|
189
189
|
## get_drafts
|
@@ -208,7 +208,7 @@ DyspatchClient.configure do |config|
|
|
208
208
|
end
|
209
209
|
|
210
210
|
api_instance = DyspatchClient::DraftsApi.new
|
211
|
-
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"
|
211
|
+
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
212
212
|
opts = {
|
213
213
|
cursor: 'cursor_example', # String | A cursor value used to retrieve a specific page from a paginated result set.
|
214
214
|
status: 'status_example' # String | Filter the list of drafts by a particular status
|
@@ -228,7 +228,7 @@ end
|
|
228
228
|
|
229
229
|
Name | Type | Description | Notes
|
230
230
|
------------- | ------------- | ------------- | -------------
|
231
|
-
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"
|
231
|
+
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
|
232
232
|
**cursor** | **String**| A cursor value used to retrieve a specific page from a paginated result set. | [optional]
|
233
233
|
**status** | **String**| Filter the list of drafts by a particular status | [optional]
|
234
234
|
|
@@ -243,7 +243,7 @@ Name | Type | Description | Notes
|
|
243
243
|
### HTTP request headers
|
244
244
|
|
245
245
|
- **Content-Type**: Not defined
|
246
|
-
- **Accept**: application/vnd.dyspatch.
|
246
|
+
- **Accept**: application/vnd.dyspatch.2020.04+json, */*
|
247
247
|
|
248
248
|
|
249
249
|
## get_localization_for_draft
|
@@ -269,7 +269,7 @@ end
|
|
269
269
|
|
270
270
|
api_instance = DyspatchClient::DraftsApi.new
|
271
271
|
draft_id = 'draft_id_example' # String | A draft ID
|
272
|
-
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"
|
272
|
+
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
273
273
|
|
274
274
|
begin
|
275
275
|
#Get localizations on a draft
|
@@ -286,7 +286,7 @@ end
|
|
286
286
|
Name | Type | Description | Notes
|
287
287
|
------------- | ------------- | ------------- | -------------
|
288
288
|
**draft_id** | **String**| A draft ID |
|
289
|
-
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"
|
289
|
+
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
|
290
290
|
|
291
291
|
### Return type
|
292
292
|
|
@@ -299,7 +299,7 @@ Name | Type | Description | Notes
|
|
299
299
|
### HTTP request headers
|
300
300
|
|
301
301
|
- **Content-Type**: Not defined
|
302
|
-
- **Accept**: application/vnd.dyspatch.
|
302
|
+
- **Accept**: application/vnd.dyspatch.2020.04+json
|
303
303
|
|
304
304
|
|
305
305
|
## save_localization
|
@@ -326,7 +326,7 @@ end
|
|
326
326
|
api_instance = DyspatchClient::DraftsApi.new
|
327
327
|
draft_id = 'draft_id_example' # String | A draft ID
|
328
328
|
language_id = 'language_id_example' # String | A language ID (eg: en-US)
|
329
|
-
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"
|
329
|
+
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
330
330
|
inline_object = DyspatchClient::InlineObject.new # InlineObject |
|
331
331
|
|
332
332
|
begin
|
@@ -344,7 +344,7 @@ Name | Type | Description | Notes
|
|
344
344
|
------------- | ------------- | ------------- | -------------
|
345
345
|
**draft_id** | **String**| A draft ID |
|
346
346
|
**language_id** | **String**| A language ID (eg: en-US) |
|
347
|
-
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"
|
347
|
+
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
|
348
348
|
**inline_object** | [**InlineObject**](InlineObject.md)| |
|
349
349
|
|
350
350
|
### Return type
|
@@ -385,7 +385,7 @@ end
|
|
385
385
|
api_instance = DyspatchClient::DraftsApi.new
|
386
386
|
draft_id = 'draft_id_example' # String | A draft ID
|
387
387
|
language_id = 'language_id_example' # String | A language ID (eg: en-US)
|
388
|
-
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"
|
388
|
+
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
389
389
|
request_body = {'key' => 'request_body_example'} # Hash<String, String> |
|
390
390
|
|
391
391
|
begin
|
@@ -403,7 +403,7 @@ Name | Type | Description | Notes
|
|
403
403
|
------------- | ------------- | ------------- | -------------
|
404
404
|
**draft_id** | **String**| A draft ID |
|
405
405
|
**language_id** | **String**| A language ID (eg: en-US) |
|
406
|
-
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"
|
406
|
+
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
|
407
407
|
**request_body** | [**Hash<String, String>**](String.md)| |
|
408
408
|
|
409
409
|
### Return type
|
@@ -417,7 +417,7 @@ nil (empty response body)
|
|
417
417
|
### HTTP request headers
|
418
418
|
|
419
419
|
- **Content-Type**: application/json
|
420
|
-
- **Accept**:
|
420
|
+
- **Accept**: */*
|
421
421
|
|
422
422
|
|
423
423
|
## submit_draft_for_approval
|
@@ -443,7 +443,7 @@ end
|
|
443
443
|
|
444
444
|
api_instance = DyspatchClient::DraftsApi.new
|
445
445
|
draft_id = 'draft_id_example' # String | A draft ID
|
446
|
-
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"
|
446
|
+
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
447
447
|
|
448
448
|
begin
|
449
449
|
#Submit the draft for approval
|
@@ -459,7 +459,7 @@ end
|
|
459
459
|
Name | Type | Description | Notes
|
460
460
|
------------- | ------------- | ------------- | -------------
|
461
461
|
**draft_id** | **String**| A draft ID |
|
462
|
-
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"
|
462
|
+
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
|
463
463
|
|
464
464
|
### Return type
|
465
465
|
|
@@ -4,20 +4,22 @@
|
|
4
4
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
|
-
**
|
8
|
-
**language** | **String** | A language identifier comprised of a language and a country identifier. See [supported languages](https://docs.dyspatch.io/localization/supported_languages/). | [optional]
|
7
|
+
**id** | **String** | An opaque, unique identifier for a localization | [optional]
|
9
8
|
**name** | **String** | The user-specified name of a localization | [optional]
|
10
9
|
**url** | **String** | The API url for a specific localization | [optional]
|
10
|
+
**locale_group** | **String** | the locale group this localization belongs to, if this field is empty the localization does not belong to any locale group | [optional]
|
11
|
+
**languages** | **Array<String>** | a list of locale codes that are available in the localization. See [supported languages](https://docs.dyspatch.io/localization/supported_languages/) for an exhaustive list of locale codes. | [optional]
|
11
12
|
|
12
13
|
## Code Sample
|
13
14
|
|
14
15
|
```ruby
|
15
16
|
require 'DyspatchClient'
|
16
17
|
|
17
|
-
instance = DyspatchClient::LocalizationMetaRead.new(
|
18
|
-
language: en-US,
|
18
|
+
instance = DyspatchClient::LocalizationMetaRead.new(id: loc_g3L7Cw6Hp5wUaf395LehwK,
|
19
19
|
name: English (US),
|
20
|
-
url: /localizations/loc_g3L7Cw6Hp5wUaf395LehwK
|
20
|
+
url: /localizations/loc_g3L7Cw6Hp5wUaf395LehwK,
|
21
|
+
locale_group: lgr_alka38ajla301,
|
22
|
+
languages: null)
|
21
23
|
```
|
22
24
|
|
23
25
|
|
data/docs/LocalizationRead.md
CHANGED
@@ -5,13 +5,14 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**id** | **String** | An opaque, unique identifier for a localization | [optional]
|
8
|
-
**
|
8
|
+
**languages** | **Array<String>** | a list of locale codes that are available in the localization. See [supported languages](https://docs.dyspatch.io/localization/supported_languages/) for an exhaustive list of locale codes. | [optional]
|
9
9
|
**url** | **String** | The API url for a specific localization | [optional]
|
10
10
|
**template** | **String** | An opaque, unique identifier for a template | [optional]
|
11
11
|
**compiled** | [**CompiledRead**](CompiledRead.md) | | [optional]
|
12
12
|
**created_at** | **DateTime** | The time of initial creation | [optional]
|
13
13
|
**updated_at** | **DateTime** | The time of last update | [optional]
|
14
14
|
**name** | **String** | The user-specified name of a localization | [optional]
|
15
|
+
**locale_group** | **String** | the locale group this localization belongs to, if this field is empty the localization does not belong to any locale group | [optional]
|
15
16
|
|
16
17
|
## Code Sample
|
17
18
|
|
@@ -19,13 +20,14 @@ Name | Type | Description | Notes
|
|
19
20
|
require 'DyspatchClient'
|
20
21
|
|
21
22
|
instance = DyspatchClient::LocalizationRead.new(id: loc_g3L7Cw6Hp5wUaf395LehwK,
|
22
|
-
|
23
|
+
languages: null,
|
23
24
|
url: /localizations/loc_g3L7Cw6Hp5wUaf395LehwK,
|
24
25
|
template: tem_g3L7Cw6Hp5wU,
|
25
26
|
compiled: null,
|
26
27
|
created_at: null,
|
27
28
|
updated_at: null,
|
28
|
-
name: English (US)
|
29
|
+
name: English (US),
|
30
|
+
locale_group: lgr_alka38ajla301)
|
29
31
|
```
|
30
32
|
|
31
33
|
|
data/docs/LocalizationsApi.md
CHANGED
@@ -32,7 +32,7 @@ end
|
|
32
32
|
api_instance = DyspatchClient::LocalizationsApi.new
|
33
33
|
localization_id = 'localization_id_example' # String | A localization ID
|
34
34
|
target_language = 'target_language_example' # String | The type of templating language to compile as. Should only be used for visual templates.
|
35
|
-
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"
|
35
|
+
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
36
36
|
|
37
37
|
begin
|
38
38
|
#Get Localization Object by ID
|
@@ -50,7 +50,7 @@ Name | Type | Description | Notes
|
|
50
50
|
------------- | ------------- | ------------- | -------------
|
51
51
|
**localization_id** | **String**| A localization ID |
|
52
52
|
**target_language** | **String**| The type of templating language to compile as. Should only be used for visual templates. |
|
53
|
-
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"
|
53
|
+
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
|
54
54
|
|
55
55
|
### Return type
|
56
56
|
|
@@ -63,5 +63,5 @@ Name | Type | Description | Notes
|
|
63
63
|
### HTTP request headers
|
64
64
|
|
65
65
|
- **Content-Type**: Not defined
|
66
|
-
- **Accept**: application/vnd.dyspatch.
|
66
|
+
- **Accept**: application/vnd.dyspatch.2020.04+json, */*
|
67
67
|
|
data/docs/TemplatesApi.md
CHANGED
@@ -33,7 +33,7 @@ end
|
|
33
33
|
api_instance = DyspatchClient::TemplatesApi.new
|
34
34
|
template_id = 'template_id_example' # String | A template ID
|
35
35
|
target_language = 'target_language_example' # String | The type of templating language to compile as. Should only be used for visual templates.
|
36
|
-
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"
|
36
|
+
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
37
37
|
|
38
38
|
begin
|
39
39
|
#Get Template by ID
|
@@ -51,7 +51,7 @@ Name | Type | Description | Notes
|
|
51
51
|
------------- | ------------- | ------------- | -------------
|
52
52
|
**template_id** | **String**| A template ID |
|
53
53
|
**target_language** | **String**| The type of templating language to compile as. Should only be used for visual templates. |
|
54
|
-
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"
|
54
|
+
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
|
55
55
|
|
56
56
|
### Return type
|
57
57
|
|
@@ -64,7 +64,7 @@ Name | Type | Description | Notes
|
|
64
64
|
### HTTP request headers
|
65
65
|
|
66
66
|
- **Content-Type**: Not defined
|
67
|
-
- **Accept**: application/vnd.dyspatch.
|
67
|
+
- **Accept**: application/vnd.dyspatch.2020.04+json, */*
|
68
68
|
|
69
69
|
|
70
70
|
## get_templates
|
@@ -89,7 +89,7 @@ DyspatchClient.configure do |config|
|
|
89
89
|
end
|
90
90
|
|
91
91
|
api_instance = DyspatchClient::TemplatesApi.new
|
92
|
-
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"
|
92
|
+
accept = 'accept_example' # String | A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
93
93
|
opts = {
|
94
94
|
cursor: 'cursor_example' # String | A cursor value used to retrieve a specific page from a paginated result set.
|
95
95
|
}
|
@@ -108,7 +108,7 @@ end
|
|
108
108
|
|
109
109
|
Name | Type | Description | Notes
|
110
110
|
------------- | ------------- | ------------- | -------------
|
111
|
-
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"
|
111
|
+
**accept** | **String**| A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\" |
|
112
112
|
**cursor** | **String**| A cursor value used to retrieve a specific page from a paginated result set. | [optional]
|
113
113
|
|
114
114
|
### Return type
|
@@ -122,5 +122,5 @@ Name | Type | Description | Notes
|
|
122
122
|
### HTTP request headers
|
123
123
|
|
124
124
|
- **Content-Type**: Not defined
|
125
|
-
- **Accept**: application/vnd.dyspatch.
|
125
|
+
- **Accept**: application/vnd.dyspatch.2020.04+json, */*
|
126
126
|
|
data/dyspatch_client.gemspec
CHANGED
@@ -3,12 +3,12 @@
|
|
3
3
|
=begin
|
4
4
|
#Dyspatch API
|
5
5
|
|
6
|
-
## Introduction
|
6
|
+
## 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)
|
7
7
|
|
8
|
-
The version of the OpenAPI document:
|
8
|
+
The version of the OpenAPI document: 2020.04
|
9
9
|
Contact: support@dyspatch.io
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
|
-
OpenAPI Generator version: 4.2.
|
11
|
+
OpenAPI Generator version: 4.2.2
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.email = ["support@dyspatch.io"]
|
24
24
|
s.homepage = "https://www.dyspatch.io"
|
25
25
|
s.summary = "Dyspatch is an email production platform that helps teams create and change emails faster. See https://www.dyspatch.io for more information."
|
26
|
-
s.description = "# Introduction
|
26
|
+
s.description = "# 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) "
|
27
27
|
s.license = 'Apache-2.0'
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
29
29
|
|
data/lib/dyspatch_client.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Dyspatch API
|
3
3
|
|
4
|
-
## Introduction
|
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)
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 2020.04
|
7
7
|
Contact: support@dyspatch.io
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
=begin
|
2
2
|
#Dyspatch API
|
3
3
|
|
4
|
-
## Introduction
|
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)
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 2020.04
|
7
7
|
Contact: support@dyspatch.io
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.2.
|
9
|
+
OpenAPI Generator version: 4.2.2
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -23,7 +23,7 @@ module DyspatchClient
|
|
23
23
|
# Deletes the localization with the given language ID if it exists
|
24
24
|
# @param draft_id [String] A draft ID
|
25
25
|
# @param language_id [String] A language ID (eg: en-US)
|
26
|
-
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"
|
26
|
+
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
27
27
|
# @param [Hash] opts the optional parameters
|
28
28
|
# @return [nil]
|
29
29
|
def delete_localization(draft_id, language_id, accept, opts = {})
|
@@ -35,7 +35,7 @@ module DyspatchClient
|
|
35
35
|
# Deletes the localization with the given language ID if it exists
|
36
36
|
# @param draft_id [String] A draft ID
|
37
37
|
# @param language_id [String] A language ID (eg: en-US)
|
38
|
-
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"
|
38
|
+
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
41
41
|
def delete_localization_with_http_info(draft_id, language_id, accept, opts = {})
|
@@ -96,7 +96,7 @@ module DyspatchClient
|
|
96
96
|
# Gets a draft object with the matching ID. The \"compiled\" field will contain the template in the default, unlocalized form.
|
97
97
|
# @param draft_id [String] A draft ID
|
98
98
|
# @param target_language [String] The type of templating language to compile as. Should only be used for visual templates.
|
99
|
-
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"
|
99
|
+
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
100
100
|
# @param [Hash] opts the optional parameters
|
101
101
|
# @return [DraftRead]
|
102
102
|
def get_draft_by_id(draft_id, target_language, accept, opts = {})
|
@@ -108,7 +108,7 @@ module DyspatchClient
|
|
108
108
|
# Gets a draft object with the matching ID. The \"compiled\" field will contain the template in the default, unlocalized form.
|
109
109
|
# @param draft_id [String] A draft ID
|
110
110
|
# @param target_language [String] The type of templating language to compile as. Should only be used for visual templates.
|
111
|
-
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"
|
111
|
+
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
112
112
|
# @param [Hash] opts the optional parameters
|
113
113
|
# @return [Array<(DraftRead, Integer, Hash)>] DraftRead data, response status code and response headers
|
114
114
|
def get_draft_by_id_with_http_info(draft_id, target_language, accept, opts = {})
|
@@ -124,7 +124,7 @@ module DyspatchClient
|
|
124
124
|
fail ArgumentError, "Missing the required parameter 'target_language' when calling DraftsApi.get_draft_by_id"
|
125
125
|
end
|
126
126
|
# verify enum value
|
127
|
-
allowable_values = ["html", "handlebars", "ampscript", "freemarker", "cheetah"]
|
127
|
+
allowable_values = ["html", "handlebars", "ampscript", "freemarker", "cheetah", "jinja"]
|
128
128
|
if @api_client.config.client_side_validation && !allowable_values.include?(target_language)
|
129
129
|
fail ArgumentError, "invalid value for \"target_language\", must be one of #{allowable_values}"
|
130
130
|
end
|
@@ -142,7 +142,7 @@ module DyspatchClient
|
|
142
142
|
# header parameters
|
143
143
|
header_params = opts[:header_params] || {}
|
144
144
|
# HTTP header 'Accept' (if needed)
|
145
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.dyspatch.
|
145
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.dyspatch.2020.04+json', '*/*'])
|
146
146
|
header_params[:'Accept'] = accept
|
147
147
|
|
148
148
|
# form parameters
|
@@ -174,9 +174,9 @@ module DyspatchClient
|
|
174
174
|
end
|
175
175
|
|
176
176
|
# Get localization keys
|
177
|
-
# Returns the list of values that need to be translated for the draft. Set the `Accept` header to `application/vnd.dyspatch.
|
177
|
+
# Returns the list of values that need to be translated for the draft. Set the `Accept` header to `application/vnd.dyspatch.2020.04+json` to get a JSON object, or `text/vnd.dyspatch.2020.04+x-gettext-translation` to get the POT file.
|
178
178
|
# @param draft_id [String] A draft ID
|
179
|
-
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"
|
179
|
+
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
180
180
|
# @param [Hash] opts the optional parameters
|
181
181
|
# @return [Array<LocalizationKeyRead>]
|
182
182
|
def get_draft_localization_keys(draft_id, accept, opts = {})
|
@@ -185,9 +185,9 @@ module DyspatchClient
|
|
185
185
|
end
|
186
186
|
|
187
187
|
# Get localization keys
|
188
|
-
# Returns the list of values that need to be translated for the draft. Set the `Accept` header to `application/vnd.dyspatch.
|
188
|
+
# Returns the list of values that need to be translated for the draft. Set the `Accept` header to `application/vnd.dyspatch.2020.04+json` to get a JSON object, or `text/vnd.dyspatch.2020.04+x-gettext-translation` to get the POT file.
|
189
189
|
# @param draft_id [String] A draft ID
|
190
|
-
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"
|
190
|
+
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
191
191
|
# @param [Hash] opts the optional parameters
|
192
192
|
# @return [Array<(Array<LocalizationKeyRead>, Integer, Hash)>] Array<LocalizationKeyRead> data, response status code and response headers
|
193
193
|
def get_draft_localization_keys_with_http_info(draft_id, accept, opts = {})
|
@@ -211,7 +211,7 @@ module DyspatchClient
|
|
211
211
|
# header parameters
|
212
212
|
header_params = opts[:header_params] || {}
|
213
213
|
# HTTP header 'Accept' (if needed)
|
214
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.dyspatch.
|
214
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.dyspatch.2020.04+json', 'text/vnd.dyspatch.2020.04+x-gettext-translation'])
|
215
215
|
header_params[:'Accept'] = accept
|
216
216
|
|
217
217
|
# form parameters
|
@@ -244,7 +244,7 @@ module DyspatchClient
|
|
244
244
|
|
245
245
|
# List Drafts
|
246
246
|
# Returns all drafts for your organization.
|
247
|
-
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"
|
247
|
+
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
248
248
|
# @param [Hash] opts the optional parameters
|
249
249
|
# @option opts [String] :cursor A cursor value used to retrieve a specific page from a paginated result set.
|
250
250
|
# @option opts [String] :status Filter the list of drafts by a particular status
|
@@ -256,7 +256,7 @@ module DyspatchClient
|
|
256
256
|
|
257
257
|
# List Drafts
|
258
258
|
# Returns all drafts for your organization.
|
259
|
-
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"
|
259
|
+
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
260
260
|
# @param [Hash] opts the optional parameters
|
261
261
|
# @option opts [String] :cursor A cursor value used to retrieve a specific page from a paginated result set.
|
262
262
|
# @option opts [String] :status Filter the list of drafts by a particular status
|
@@ -284,7 +284,7 @@ module DyspatchClient
|
|
284
284
|
# header parameters
|
285
285
|
header_params = opts[:header_params] || {}
|
286
286
|
# HTTP header 'Accept' (if needed)
|
287
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.dyspatch.
|
287
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.dyspatch.2020.04+json', '*/*'])
|
288
288
|
header_params[:'Accept'] = accept
|
289
289
|
|
290
290
|
# form parameters
|
@@ -318,7 +318,7 @@ module DyspatchClient
|
|
318
318
|
# Get localizations on a draft
|
319
319
|
# Returns localization metadata for the draft
|
320
320
|
# @param draft_id [String] A draft ID
|
321
|
-
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"
|
321
|
+
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
322
322
|
# @param [Hash] opts the optional parameters
|
323
323
|
# @return [Array<LocalizationMetaRead>]
|
324
324
|
def get_localization_for_draft(draft_id, accept, opts = {})
|
@@ -329,7 +329,7 @@ module DyspatchClient
|
|
329
329
|
# Get localizations on a draft
|
330
330
|
# Returns localization metadata for the draft
|
331
331
|
# @param draft_id [String] A draft ID
|
332
|
-
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"
|
332
|
+
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
333
333
|
# @param [Hash] opts the optional parameters
|
334
334
|
# @return [Array<(Array<LocalizationMetaRead>, Integer, Hash)>] Array<LocalizationMetaRead> data, response status code and response headers
|
335
335
|
def get_localization_for_draft_with_http_info(draft_id, accept, opts = {})
|
@@ -353,7 +353,7 @@ module DyspatchClient
|
|
353
353
|
# header parameters
|
354
354
|
header_params = opts[:header_params] || {}
|
355
355
|
# HTTP header 'Accept' (if needed)
|
356
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.dyspatch.
|
356
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.dyspatch.2020.04+json'])
|
357
357
|
header_params[:'Accept'] = accept
|
358
358
|
|
359
359
|
# form parameters
|
@@ -388,7 +388,7 @@ module DyspatchClient
|
|
388
388
|
# Inserts a localization or sets the name on an existing localization that already uses the languageId
|
389
389
|
# @param draft_id [String] A draft ID
|
390
390
|
# @param language_id [String] A language ID (eg: en-US)
|
391
|
-
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"
|
391
|
+
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
392
392
|
# @param inline_object [InlineObject]
|
393
393
|
# @param [Hash] opts the optional parameters
|
394
394
|
# @return [nil]
|
@@ -401,7 +401,7 @@ module DyspatchClient
|
|
401
401
|
# Inserts a localization or sets the name on an existing localization that already uses the languageId
|
402
402
|
# @param draft_id [String] A draft ID
|
403
403
|
# @param language_id [String] A language ID (eg: en-US)
|
404
|
-
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"
|
404
|
+
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
405
405
|
# @param inline_object [InlineObject]
|
406
406
|
# @param [Hash] opts the optional parameters
|
407
407
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
@@ -469,7 +469,7 @@ module DyspatchClient
|
|
469
469
|
# Completely replaces any existing translations for the given language with those provided in request body. Variables embedded in keys or values are expected to be in the format `%(my_variable)s` and will automatically convert to the correct Dyspatch format depending on the type of template. Accepts key/value pairs in JSON format or in gettext PO file format. For JSON set `Content-Type` header to `application/json`. For gettext PO format set `Content-Type` header to `text/x-gettext-translation`.
|
470
470
|
# @param draft_id [String] A draft ID
|
471
471
|
# @param language_id [String] A language ID (eg: en-US)
|
472
|
-
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"
|
472
|
+
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
473
473
|
# @param request_body [Hash<String, String>]
|
474
474
|
# @param [Hash] opts the optional parameters
|
475
475
|
# @return [nil]
|
@@ -482,7 +482,7 @@ module DyspatchClient
|
|
482
482
|
# Completely replaces any existing translations for the given language with those provided in request body. Variables embedded in keys or values are expected to be in the format `%(my_variable)s` and will automatically convert to the correct Dyspatch format depending on the type of template. Accepts key/value pairs in JSON format or in gettext PO file format. For JSON set `Content-Type` header to `application/json`. For gettext PO format set `Content-Type` header to `text/x-gettext-translation`.
|
483
483
|
# @param draft_id [String] A draft ID
|
484
484
|
# @param language_id [String] A language ID (eg: en-US)
|
485
|
-
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"
|
485
|
+
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
486
486
|
# @param request_body [Hash<String, String>]
|
487
487
|
# @param [Hash] opts the optional parameters
|
488
488
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
@@ -514,6 +514,8 @@ module DyspatchClient
|
|
514
514
|
|
515
515
|
# header parameters
|
516
516
|
header_params = opts[:header_params] || {}
|
517
|
+
# HTTP header 'Accept' (if needed)
|
518
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
517
519
|
# HTTP header 'Content-Type'
|
518
520
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
519
521
|
header_params[:'Accept'] = accept
|
@@ -549,7 +551,7 @@ module DyspatchClient
|
|
549
551
|
# Submit the draft for approval
|
550
552
|
# Moves the draft into submitted state.
|
551
553
|
# @param draft_id [String] A draft ID
|
552
|
-
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"
|
554
|
+
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
553
555
|
# @param [Hash] opts the optional parameters
|
554
556
|
# @return [nil]
|
555
557
|
def submit_draft_for_approval(draft_id, accept, opts = {})
|
@@ -560,7 +562,7 @@ module DyspatchClient
|
|
560
562
|
# Submit the draft for approval
|
561
563
|
# Moves the draft into submitted state.
|
562
564
|
# @param draft_id [String] A draft ID
|
563
|
-
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"
|
565
|
+
# @param accept [String] A version of the API that should be used for the request. For example, to use version \"2020.04\", set the value to \"application/vnd.dyspatch.2020.04+json\"
|
564
566
|
# @param [Hash] opts the optional parameters
|
565
567
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
566
568
|
def submit_draft_for_approval_with_http_info(draft_id, accept, opts = {})
|