Skip to content

Commit

Permalink
Merge pull request #54 from Ali-YousefiTelori/develop
Browse files Browse the repository at this point in the history
update packages
  • Loading branch information
Ali-YousefiTelori committed Feb 23, 2024
2 parents 3ee328c + 4107e15 commit a9615b6
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7120,6 +7120,84 @@ public virtual async System.Threading.Tasks.Task<Int64MessageContract> GetBigges
}
}

/// <returns>Success</returns>
/// <exception cref="ApiException">A server side error occurred.</exception>
public virtual System.Threading.Tasks.Task<MessageContract> UpdateFormValuesOnlyAsync(FormValuesContract body)
{
return UpdateFormValuesOnlyAsync(body, System.Threading.CancellationToken.None);
}

/// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
/// <returns>Success</returns>
/// <exception cref="ApiException">A server side error occurred.</exception>
public virtual async System.Threading.Tasks.Task<MessageContract> UpdateFormValuesOnlyAsync(FormValuesContract body, System.Threading.CancellationToken cancellationToken)
{
var urlBuilder_ = new System.Text.StringBuilder();
urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/FormValues/UpdateFormValuesOnly");

var client_ = _httpClient;
var disposeClient_ = false;
try
{
using (var request_ = await CreateHttpRequestMessageAsync(cancellationToken).ConfigureAwait(false))
{
var json_ = Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value);
var content_ = new System.Net.Http.StringContent(json_);
content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
request_.Content = content_;
request_.Method = new System.Net.Http.HttpMethod("POST");
request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain"));

PrepareRequest(client_, request_, urlBuilder_);

var url_ = urlBuilder_.ToString();
request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute);

PrepareRequest(client_, request_, url_);

var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
var disposeResponse_ = true;
try
{
var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value);
if (response_.Content != null && response_.Content.Headers != null)
{
foreach (var item_ in response_.Content.Headers)
headers_[item_.Key] = item_.Value;
}

ProcessResponse(client_, response_);

var status_ = (int)response_.StatusCode;
if (status_ == 200)
{
var objectResponse_ = await ReadObjectResponseAsync<MessageContract>(response_, headers_, cancellationToken).ConfigureAwait(false);
if (objectResponse_.Object == null)
{
throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
}
return objectResponse_.Object;
}
else
{
var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false);
throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null);
}
}
finally
{
if (disposeResponse_)
response_.Dispose();
}
}
}
finally
{
if (disposeClient_)
client_.Dispose();
}
}

/// <returns>Success</returns>
/// <exception cref="ApiException">A server side error occurred.</exception>
public virtual System.Threading.Tasks.Task<MessageContract> AddBulkAsync(FormValuesContractCreateBulkRequestContract body)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3928,6 +3928,55 @@
}
}
},
"/api/FormValues/UpdateFormValuesOnly": {
"post": {
"tags": [
"FormValues"
],
"operationId": "UpdateFormValuesOnly",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FormValuesContract"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/FormValuesContract"
}
},
"application/*+json": {
"schema": {
"$ref": "#/components/schemas/FormValuesContract"
}
}
}
},
"responses": {
"200": {
"description": "Success",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/MessageContract"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/MessageContract"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/MessageContract"
}
}
}
}
}
}
},
"/api/FormValues/AddBulk": {
"post": {
"tags": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Platforms>AnyCPU;x64;x86</Platforms>
<Authors>EasyMicroservices</Authors>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>0.0.0.31</Version>
<Version>0.0.0.32</Version>
<Description>client generated code.</Description>
<Copyright>EasyMicroservices@gmail.com</Copyright>
<PackageTags>Label,microservice,whitelabel,tenant,tenants</PackageTags>
Expand Down

0 comments on commit a9615b6

Please sign in to comment.