From 7bab7ad79bb856c077669f6a0030e1f46dbfe614 Mon Sep 17 00:00:00 2001 From: Mahdiyar Ghannad Date: Sat, 12 Aug 2023 16:28:17 +0330 Subject: [PATCH] Update client --- .../OpenAPI.cs | 312 ++++++++++++++++-- .../OpenAPI.nswag.json | 182 ++++++++-- 2 files changed, 445 insertions(+), 49 deletions(-) diff --git a/src/CSharp/EasyMicroservices.AuthenticationsMicroservice.Clients/Connected Services/AuthenticationsGeneratedServices/OpenAPI.cs b/src/CSharp/EasyMicroservices.AuthenticationsMicroservice.Clients/Connected Services/AuthenticationsGeneratedServices/OpenAPI.cs index aa3d9cc..9617b45 100644 --- a/src/CSharp/EasyMicroservices.AuthenticationsMicroservice.Clients/Connected Services/AuthenticationsGeneratedServices/OpenAPI.cs +++ b/src/CSharp/EasyMicroservices.AuthenticationsMicroservice.Clients/Connected Services/AuthenticationsGeneratedServices/OpenAPI.cs @@ -363,23 +363,18 @@ public virtual async System.Threading.Tasks.Task TestAsync(System.Thread /// Success /// A server side error occurred. - public virtual System.Threading.Tasks.Task GetByIdAsync(long? id) + public virtual System.Threading.Tasks.Task GetByIdAsync(Int64GetIdRequestContract body) { - return GetByIdAsync(id, System.Threading.CancellationToken.None); + return GetByIdAsync(body, System.Threading.CancellationToken.None); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task GetByIdAsync(long? id, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task GetByIdAsync(Int64GetIdRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/Users/GetById?"); - if (id != null) - { - urlBuilder_.Append(System.Uri.EscapeDataString("id") + "=").Append(System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); - } - urlBuilder_.Length--; + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/Users/GetById"); var client_ = _httpClient; var disposeClient_ = false; @@ -387,7 +382,11 @@ public virtual async System.Threading.Tasks.Task Ge { using (var request_ = new System.Net.Http.HttpRequestMessage()) { - request_.Method = new System.Net.Http.HttpMethod("GET"); + 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_); @@ -442,7 +441,7 @@ public virtual async System.Threading.Tasks.Task Ge /// Success /// A server side error occurred. - public virtual System.Threading.Tasks.Task GetByUniqueIdentityAsync(GetUniqueIdentityRequest body) + public virtual System.Threading.Tasks.Task GetByUniqueIdentityAsync(GetUniqueIdentityRequestContract body) { return GetByUniqueIdentityAsync(body, System.Threading.CancellationToken.None); } @@ -450,7 +449,7 @@ public virtual System.Threading.Tasks.Task GetByUni /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task GetByUniqueIdentityAsync(GetUniqueIdentityRequest body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task GetByUniqueIdentityAsync(GetUniqueIdentityRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/Users/GetByUniqueIdentity"); @@ -621,7 +620,7 @@ public virtual async System.Threading.Tasks.Task Up 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_.Method = new System.Net.Http.HttpMethod("PUT"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); PrepareRequest(client_, request_, urlBuilder_); @@ -676,23 +675,96 @@ public virtual async System.Threading.Tasks.Task Up /// Success /// A server side error occurred. - public virtual System.Threading.Tasks.Task HardDeleteByIdAsync(long? id) + public virtual System.Threading.Tasks.Task HardDeleteByIdAsync(Int64DeleteRequestContract body) { - return HardDeleteByIdAsync(id, System.Threading.CancellationToken.None); + return HardDeleteByIdAsync(body, System.Threading.CancellationToken.None); } /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task HardDeleteByIdAsync(long? id, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task HardDeleteByIdAsync(Int64DeleteRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); - urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/Users/HardDeleteById?"); - if (id != null) + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/Users/HardDeleteById"); + + var client_ = _httpClient; + var disposeClient_ = false; + try { - urlBuilder_.Append(System.Uri.EscapeDataString("id") + "=").Append(System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture))).Append("&"); + using (var request_ = new System.Net.Http.HttpRequestMessage()) + { + 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("DELETE"); + 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(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(); + } + } } - urlBuilder_.Length--; + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + /// Success + /// A server side error occurred. + public virtual System.Threading.Tasks.Task SoftDeleteByIdAsync(Int64SoftDeleteRequestContract body) + { + return SoftDeleteByIdAsync(body, System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// Success + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task SoftDeleteByIdAsync(Int64SoftDeleteRequestContract body, System.Threading.CancellationToken cancellationToken) + { + var urlBuilder_ = new System.Text.StringBuilder(); + urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/Users/SoftDeleteById"); var client_ = _httpClient; var disposeClient_ = false; @@ -700,6 +772,10 @@ public virtual async System.Threading.Tasks.Task HardDeleteById { using (var request_ = new System.Net.Http.HttpRequestMessage()) { + 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("DELETE"); request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("text/plain")); @@ -829,7 +905,7 @@ public virtual async System.Threading.Tasks.TaskSuccess /// A server side error occurred. - public virtual System.Threading.Tasks.Task GetAllByUniqueIdentityAsync(GetUniqueIdentityRequest body) + public virtual System.Threading.Tasks.Task GetAllByUniqueIdentityAsync(GetUniqueIdentityRequestContract body) { return GetAllByUniqueIdentityAsync(body, System.Threading.CancellationToken.None); } @@ -837,7 +913,7 @@ public virtual System.Threading.Tasks.Task GetA /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// Success /// A server side error occurred. - public virtual async System.Threading.Tasks.Task GetAllByUniqueIdentityAsync(GetUniqueIdentityRequest body, System.Threading.CancellationToken cancellationToken) + public virtual async System.Threading.Tasks.Task GetAllByUniqueIdentityAsync(GetUniqueIdentityRequestContract body, System.Threading.CancellationToken cancellationToken) { var urlBuilder_ = new System.Text.StringBuilder(); urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/api/Users/GetAllByUniqueIdentity"); @@ -1106,6 +1182,7 @@ public partial class ErrorContract : System.ComponentModel.INotifyPropertyChange private System.Collections.Generic.ICollection _validations; private FailedReasonType _failedReasonType; private string _message; + private string _endUserMessage; private string _details; private string _stackTrace; @@ -1154,6 +1231,21 @@ public string Message } } + [Newtonsoft.Json.JsonProperty("endUserMessage", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EndUserMessage + { + get { return _endUserMessage; } + + set + { + if (_endUserMessage != value) + { + _endUserMessage = value; + RaisePropertyChanged(); + } + } + } + [Newtonsoft.Json.JsonProperty("details", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public string Details { @@ -1228,10 +1320,14 @@ public enum FailedReasonType WebServiceNotWorking = 14, + Incorrect = 15, + + OperationFailed = 16, + } [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.3.0))")] - public partial class GetUniqueIdentityRequest : System.ComponentModel.INotifyPropertyChanged + public partial class GetUniqueIdentityRequestContract : System.ComponentModel.INotifyPropertyChanged { private string _uniqueIdentity; @@ -1260,6 +1356,66 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } } + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.3.0))")] + public partial class Int64DeleteRequestContract : System.ComponentModel.INotifyPropertyChanged + { + private long _id; + + [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long Id + { + get { return _id; } + + set + { + if (_id != value) + { + _id = value; + RaisePropertyChanged(); + } + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) + { + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.3.0))")] + public partial class Int64GetIdRequestContract : System.ComponentModel.INotifyPropertyChanged + { + private long _id; + + [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long Id + { + get { return _id; } + + set + { + if (_id != value) + { + _id = value; + RaisePropertyChanged(); + } + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) + { + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.3.0))")] public partial class Int64MessageContract : System.ComponentModel.INotifyPropertyChanged { @@ -1322,6 +1478,52 @@ protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.Cal } } + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.3.0))")] + public partial class Int64SoftDeleteRequestContract : System.ComponentModel.INotifyPropertyChanged + { + private long _id; + private bool _isDelete; + + [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public long Id + { + get { return _id; } + + set + { + if (_id != value) + { + _id = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("isDelete", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool IsDelete + { + get { return _isDelete; } + + set + { + if (_isDelete != value) + { + _isDelete = value; + RaisePropertyChanged(); + } + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) + { + var handler = PropertyChanged; + if (handler != null) + handler(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); + } + } + [System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "13.19.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.3.0))")] public partial class MessageContract : System.ComponentModel.INotifyPropertyChanged { @@ -1437,6 +1639,10 @@ public partial class UserContract : System.ComponentModel.INotifyPropertyChanged private string _userName; private string _password; private string _uniqueIdentity; + private System.DateTimeOffset _creationDateTime; + private System.DateTimeOffset? _modificationDateTime; + private bool _isDeleted; + private System.DateTimeOffset? _deletedDateTime; [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] public long Id @@ -1498,6 +1704,66 @@ public string UniqueIdentity } } + [Newtonsoft.Json.JsonProperty("creationDateTime", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset CreationDateTime + { + get { return _creationDateTime; } + + set + { + if (_creationDateTime != value) + { + _creationDateTime = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("modificationDateTime", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? ModificationDateTime + { + get { return _modificationDateTime; } + + set + { + if (_modificationDateTime != value) + { + _modificationDateTime = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("isDeleted", Required = Newtonsoft.Json.Required.DisallowNull, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool IsDeleted + { + get { return _isDeleted; } + + set + { + if (_isDeleted != value) + { + _isDeleted = value; + RaisePropertyChanged(); + } + } + } + + [Newtonsoft.Json.JsonProperty("deletedDateTime", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? DeletedDateTime + { + get { return _deletedDateTime; } + + set + { + if (_deletedDateTime != value) + { + _deletedDateTime = value; + RaisePropertyChanged(); + } + } + } + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; protected virtual void RaisePropertyChanged([System.Runtime.CompilerServices.CallerMemberName] string propertyName = null) diff --git a/src/CSharp/EasyMicroservices.AuthenticationsMicroservice.Clients/Connected Services/AuthenticationsGeneratedServices/OpenAPI.nswag.json b/src/CSharp/EasyMicroservices.AuthenticationsMicroservice.Clients/Connected Services/AuthenticationsGeneratedServices/OpenAPI.nswag.json index bc17826..51feaa1 100644 --- a/src/CSharp/EasyMicroservices.AuthenticationsMicroservice.Clients/Connected Services/AuthenticationsGeneratedServices/OpenAPI.nswag.json +++ b/src/CSharp/EasyMicroservices.AuthenticationsMicroservice.Clients/Connected Services/AuthenticationsGeneratedServices/OpenAPI.nswag.json @@ -183,21 +183,30 @@ } }, "/api/Users/GetById": { - "get": { + "post": { "tags": [ "Users" ], "operationId": "GetById", - "parameters": [ - { - "name": "id", - "in": "query", - "schema": { - "type": "integer", - "format": "int64" + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Int64GetIdRequestContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/Int64GetIdRequestContract" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/Int64GetIdRequestContract" + } } } - ], + }, "responses": { "200": { "description": "Success", @@ -232,17 +241,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetUniqueIdentityRequest" + "$ref": "#/components/schemas/GetUniqueIdentityRequestContract" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GetUniqueIdentityRequest" + "$ref": "#/components/schemas/GetUniqueIdentityRequestContract" } }, "application/*+json": { "schema": { - "$ref": "#/components/schemas/GetUniqueIdentityRequest" + "$ref": "#/components/schemas/GetUniqueIdentityRequestContract" } } } @@ -321,7 +330,7 @@ } }, "/api/Users/Update": { - "post": { + "put": { "tags": [ "Users" ], @@ -375,16 +384,74 @@ "Users" ], "operationId": "HardDeleteById", - "parameters": [ - { - "name": "id", - "in": "query", - "schema": { - "type": "integer", - "format": "int64" + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Int64DeleteRequestContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/Int64DeleteRequestContract" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/Int64DeleteRequestContract" + } } } + }, + "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/Users/SoftDeleteById": { + "delete": { + "tags": [ + "Users" ], + "operationId": "SoftDeleteById", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Int64SoftDeleteRequestContract" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/Int64SoftDeleteRequestContract" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/Int64SoftDeleteRequestContract" + } + } + } + }, "responses": { "200": { "description": "Success", @@ -449,17 +516,17 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetUniqueIdentityRequest" + "$ref": "#/components/schemas/GetUniqueIdentityRequestContract" } }, "text/json": { "schema": { - "$ref": "#/components/schemas/GetUniqueIdentityRequest" + "$ref": "#/components/schemas/GetUniqueIdentityRequestContract" } }, "application/*+json": { "schema": { - "$ref": "#/components/schemas/GetUniqueIdentityRequest" + "$ref": "#/components/schemas/GetUniqueIdentityRequestContract" } } } @@ -538,6 +605,10 @@ "type": "string", "nullable": true }, + "endUserMessage": { + "type": "string", + "nullable": true + }, "details": { "type": "string", "nullable": true @@ -566,7 +637,9 @@ "NotFound", "ValidationsError", "StreamError", - "WebServiceNotWorking" + "WebServiceNotWorking", + "Incorrect", + "OperationFailed" ], "enum": [ 0, @@ -583,10 +656,12 @@ 11, 12, 13, - 14 + 14, + 15, + 16 ] }, - "GetUniqueIdentityRequest": { + "GetUniqueIdentityRequestContract": { "type": "object", "additionalProperties": false, "properties": { @@ -596,6 +671,28 @@ } } }, + "Int64DeleteRequestContract": { + "title": "DeleteRequestContract", + "type": "object", + "additionalProperties": false, + "properties": { + "id": { + "type": "integer", + "format": "int64" + } + } + }, + "Int64GetIdRequestContract": { + "title": "GetIdRequestContract", + "type": "object", + "additionalProperties": false, + "properties": { + "id": { + "type": "integer", + "format": "int64" + } + } + }, "Int64MessageContract": { "title": "MessageContract", "type": "object", @@ -613,6 +710,20 @@ } } }, + "Int64SoftDeleteRequestContract": { + "title": "SoftDeleteRequestContract", + "type": "object", + "additionalProperties": false, + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "isDelete": { + "type": "boolean" + } + } + }, "MessageContract": { "type": "object", "additionalProperties": false, @@ -666,6 +777,25 @@ "uniqueIdentity": { "type": "string", "nullable": true + }, + "creationDateTime": { + "type": "string", + "format": "date-time" + }, + "modificationDateTime": { + "title": "Nullable", + "type": "string", + "format": "date-time", + "nullable": true + }, + "isDeleted": { + "type": "boolean" + }, + "deletedDateTime": { + "title": "Nullable", + "type": "string", + "format": "date-time", + "nullable": true } } },