Skip to content

Commit 6bd972e

Browse files
authored
Release 21.9 (#28)
* Release 21.9 * Update Swagger spec
1 parent 32fbc86 commit 6bd972e

File tree

8 files changed

+71
-17
lines changed

8 files changed

+71
-17
lines changed

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
.PHONY: all
2-
all: update
2+
all: test
3+
4+
.PHONY: format
5+
format:
6+
dotnet format
7+
8+
.PHONY: test
9+
test:
10+
dotnet test
311

412
.PHONY: update
513
update:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Nuget](https://img.shields.io/nuget/v/Aspose.BarCode-Cloud)](https://www.nuget.org/packages/Aspose.BarCode-Cloud/)
66

77
- API version: 3.0
8-
- SDK version: 21.7.0
8+
- SDK version: 21.9.0
99

1010
## Demo applications
1111

docs/BarcodeApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ Name | Type | Description | Notes
400400

401401
### HTTP request headers
402402

403-
- **Content-Type**: multipart/form-data, application/octet-stream
403+
- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded, application/octet-stream
404404
- **Accept**: application/json
405405

406406
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
@@ -600,7 +600,7 @@ Name | Type | Description | Notes
600600

601601
### HTTP request headers
602602

603-
- **Content-Type**: application/json, application/xml, multipart/form-data
603+
- **Content-Type**: multipart/form-data, application/x-www-form-urlencoded, application/json, application/xml
604604
- **Accept**: application/json
605605

606606
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

src/Api/BarcodeApi.cs

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ public System.IO.Stream GetBarcodeGenerate(GetBarcodeGenerateRequest request)
148148
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "barWidthReduction", request.BarWidthReduction);
149149
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "format", request.format);
150150

151+
var headerParams = new Dictionary<string, string>();
152+
151153
return _apiInvoker.InvokeBinaryApi(
152154
resourcePath,
153155
"GET",
@@ -213,11 +215,13 @@ public BarcodeResponseList GetBarcodeRecognize(GetBarcodeRecognizeRequest reques
213215
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "storage", request.storage);
214216
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "folder", request.folder);
215217

218+
var headerParams = new Dictionary<string, string>();
219+
216220
var response = _apiInvoker.InvokeApi(
217221
resourcePath,
218222
"GET",
219223
null,
220-
null,
224+
headerParams,
221225
null);
222226

223227
if (response != null)
@@ -280,15 +284,19 @@ public BarcodeResponseList PostBarcodeRecognizeFromUrlOrContent(PostBarcodeRecog
280284
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "rectangleRegion", request.RectangleRegion);
281285
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "url", request.url);
282286

287+
var headerParams = new Dictionary<string, string>();
288+
283289
if (request.image != null)
284290
{
285291
formParams.Add("image", _apiInvoker.ToFileInfo(request.image, "image"));
292+
headerParams["Content-Type"] = "multipart/form-data";
293+
286294
}
287295
var response = _apiInvoker.InvokeApi(
288296
resourcePath,
289297
"POST",
290298
null,
291-
null,
299+
headerParams,
292300
formParams);
293301

294302
if (response != null)
@@ -321,6 +329,8 @@ public System.IO.Stream PostGenerateMultiple(PostGenerateMultipleRequest request
321329
.Replace("&amp;", "&")
322330
.Replace("/?", "?");
323331
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "format", request.format);
332+
333+
var headerParams = new Dictionary<string, string>();
324334
var postBody = SerializationHelper.Serialize(request.generatorParamsList); // http body (model) parameter
325335
return _apiInvoker.InvokeBinaryApi(
326336
resourcePath,
@@ -399,11 +409,13 @@ public ResultImageInfo PutBarcodeGenerateFile(PutBarcodeGenerateFileRequest requ
399409
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "folder", request.folder);
400410
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "format", request.format);
401411

412+
var headerParams = new Dictionary<string, string>();
413+
402414
var response = _apiInvoker.InvokeApi(
403415
resourcePath,
404416
"PUT",
405417
null,
406-
null,
418+
headerParams,
407419
null);
408420

409421
if (response != null)
@@ -444,12 +456,14 @@ public BarcodeResponseList PutBarcodeRecognizeFromBody(PutBarcodeRecognizeFromBo
444456
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "type", request.type);
445457
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "storage", request.storage);
446458
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "folder", request.folder);
459+
460+
var headerParams = new Dictionary<string, string>();
447461
var postBody = SerializationHelper.Serialize(request.readerParams); // http body (model) parameter
448462
var response = _apiInvoker.InvokeApi(
449463
resourcePath,
450464
"PUT",
451465
postBody,
452-
null,
466+
headerParams,
453467
null);
454468

455469
if (response != null)
@@ -490,12 +504,14 @@ public ResultImageInfo PutGenerateMultiple(PutGenerateMultipleRequest request)
490504
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "format", request.format);
491505
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "folder", request.folder);
492506
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "storage", request.storage);
507+
508+
var headerParams = new Dictionary<string, string>();
493509
var postBody = SerializationHelper.Serialize(request.generatorParamsList); // http body (model) parameter
494510
var response = _apiInvoker.InvokeApi(
495511
resourcePath,
496512
"PUT",
497513
postBody,
498-
null,
514+
headerParams,
499515
null);
500516

501517
if (response != null)

src/Api/FileApi.cs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ public void CopyFile(CopyFileRequest request)
116116
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "destStorageName", request.destStorageName);
117117
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "versionId", request.versionId);
118118

119+
var headerParams = new Dictionary<string, string>();
120+
119121
_apiInvoker.InvokeApi(
120122
resourcePath,
121123
"PUT",
@@ -146,6 +148,8 @@ public void DeleteFile(DeleteFileRequest request)
146148
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "storageName", request.storageName);
147149
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "versionId", request.versionId);
148150

151+
var headerParams = new Dictionary<string, string>();
152+
149153
_apiInvoker.InvokeApi(
150154
resourcePath,
151155
"DELETE",
@@ -178,6 +182,8 @@ public System.IO.Stream DownloadFile(DownloadFileRequest request)
178182
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "storageName", request.storageName);
179183
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "versionId", request.versionId);
180184

185+
var headerParams = new Dictionary<string, string>();
186+
181187
return _apiInvoker.InvokeBinaryApi(
182188
resourcePath,
183189
"GET",
@@ -215,6 +221,8 @@ public void MoveFile(MoveFileRequest request)
215221
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "destStorageName", request.destStorageName);
216222
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "versionId", request.versionId);
217223

224+
var headerParams = new Dictionary<string, string>();
225+
218226
_apiInvoker.InvokeApi(
219227
resourcePath,
220228
"PUT",
@@ -252,15 +260,19 @@ public FilesUploadResult UploadFile(UploadFileRequest request)
252260
resourcePath = UrlHelper.AddPathParameter(resourcePath, "path", request.path);
253261
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "storageName", request.storageName);
254262

263+
var headerParams = new Dictionary<string, string>();
264+
255265
if (request.File != null)
256266
{
257267
formParams.Add("_file", _apiInvoker.ToFileInfo(request.File, "File"));
268+
headerParams["Content-Type"] = "multipart/form-data";
269+
258270
}
259271
var response = _apiInvoker.InvokeApi(
260272
resourcePath,
261273
"PUT",
262274
null,
263-
null,
275+
headerParams,
264276
formParams);
265277

266278
if (response != null)

src/Api/FolderApi.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ public void CopyFolder(CopyFolderRequest request)
115115
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "srcStorageName", request.srcStorageName);
116116
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "destStorageName", request.destStorageName);
117117

118+
var headerParams = new Dictionary<string, string>();
119+
118120
_apiInvoker.InvokeApi(
119121
resourcePath,
120122
"PUT",
@@ -144,6 +146,8 @@ public void CreateFolder(CreateFolderRequest request)
144146
resourcePath = UrlHelper.AddPathParameter(resourcePath, "path", request.path);
145147
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "storageName", request.storageName);
146148

149+
var headerParams = new Dictionary<string, string>();
150+
147151
_apiInvoker.InvokeApi(
148152
resourcePath,
149153
"PUT",
@@ -174,6 +178,8 @@ public void DeleteFolder(DeleteFolderRequest request)
174178
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "storageName", request.storageName);
175179
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "recursive", request.recursive);
176180

181+
var headerParams = new Dictionary<string, string>();
182+
177183
_apiInvoker.InvokeApi(
178184
resourcePath,
179185
"DELETE",
@@ -205,11 +211,13 @@ public FilesList GetFilesList(GetFilesListRequest request)
205211
resourcePath = UrlHelper.AddPathParameter(resourcePath, "path", request.path);
206212
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "storageName", request.storageName);
207213

214+
var headerParams = new Dictionary<string, string>();
215+
208216
var response = _apiInvoker.InvokeApi(
209217
resourcePath,
210218
"GET",
211219
null,
212-
null,
220+
headerParams,
213221
null);
214222

215223
if (response != null)
@@ -249,6 +257,8 @@ public void MoveFolder(MoveFolderRequest request)
249257
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "srcStorageName", request.srcStorageName);
250258
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "destStorageName", request.destStorageName);
251259

260+
var headerParams = new Dictionary<string, string>();
261+
252262
_apiInvoker.InvokeApi(
253263
resourcePath,
254264
"PUT",

src/Api/StorageApi.cs

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,13 @@ public DiscUsage GetDiscUsage(GetDiscUsageRequest request)
104104
.Replace("/?", "?");
105105
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "storageName", request.storageName);
106106

107+
var headerParams = new Dictionary<string, string>();
108+
107109
var response = _apiInvoker.InvokeApi(
108110
resourcePath,
109111
"GET",
110112
null,
111-
null,
113+
headerParams,
112114
null);
113115

114116
if (response != null)
@@ -143,11 +145,13 @@ public FileVersions GetFileVersions(GetFileVersionsRequest request)
143145
resourcePath = UrlHelper.AddPathParameter(resourcePath, "path", request.path);
144146
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "storageName", request.storageName);
145147

148+
var headerParams = new Dictionary<string, string>();
149+
146150
var response = _apiInvoker.InvokeApi(
147151
resourcePath,
148152
"GET",
149153
null,
150-
null,
154+
headerParams,
151155
null);
152156

153157
if (response != null)
@@ -183,11 +187,13 @@ public ObjectExist ObjectExists(ObjectExistsRequest request)
183187
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "storageName", request.storageName);
184188
resourcePath = UrlHelper.AddQueryParameterToUrl(resourcePath, "versionId", request.versionId);
185189

190+
var headerParams = new Dictionary<string, string>();
191+
186192
var response = _apiInvoker.InvokeApi(
187193
resourcePath,
188194
"GET",
189195
null,
190-
null,
196+
headerParams,
191197
null);
192198

193199
if (response != null)
@@ -221,11 +227,13 @@ public StorageExist StorageExists(StorageExistsRequest request)
221227
.Replace("/?", "?");
222228
resourcePath = UrlHelper.AddPathParameter(resourcePath, "storageName", request.storageName);
223229

230+
var headerParams = new Dictionary<string, string>();
231+
224232
var response = _apiInvoker.InvokeApi(
225233
resourcePath,
226234
"GET",
227235
null,
228-
null,
236+
headerParams,
229237
null);
230238

231239
if (response != null)

src/Aspose.BarCode.Cloud.Sdk.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ Aspose.Barcode for Cloud allows you to control all aspects of the image and barc
1717
<PackageId>Aspose.BarCode-Cloud</PackageId>
1818
<Product>Aspose.BarCode Cloud SDK for .NET</Product>
1919
<PackageIcon>PackageIcon.png</PackageIcon>
20-
<Version>21.7.0</Version>
20+
<Version>21.9.0</Version>
2121
<Authors>asposecloud</Authors>
22-
<AssemblyVersion>21.7.0.0</AssemblyVersion>
22+
<AssemblyVersion>21.9.0.0</AssemblyVersion>
2323
</PropertyGroup>
2424

2525
<ItemGroup>

0 commit comments

Comments
 (0)