added Id return object to POST of times and shipcall
This commit is contained in:
parent
916beedbb8
commit
215d419180
@ -1,7 +1,7 @@
|
||||
|
||||
//----------------------
|
||||
// <auto-generated>
|
||||
// Generated REST API Client Code Generator v1.8.4.0 on 21.09.2023 07:07:32
|
||||
// Generated REST API Client Code Generator v1.8.4.0 on 29.09.2023 14:42:26
|
||||
// Using the tool OpenAPI Generator v7.0.0
|
||||
// </auto-generated>
|
||||
//----------------------
|
||||
@ -51,7 +51,6 @@ using System.Threading.Tasks;
|
||||
*/
|
||||
namespace BreCalClient.misc.Api
|
||||
{
|
||||
#pragma warning disable CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
/// <summary>
|
||||
/// Represents a collection of functions to interact with the API endpoints
|
||||
/// </summary>
|
||||
@ -157,8 +156,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <exception cref="BreCalClient.misc.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="shipcall">Creates a new ship call. **Do not** provide id parameter.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns></returns>
|
||||
void ShipcallsPost(Shipcall shipcall, int operationIndex = 0);
|
||||
/// <returns>Id</returns>
|
||||
Id ShipcallsPost(Shipcall shipcall, int operationIndex = 0);
|
||||
/// <summary>
|
||||
/// Create a new ship call
|
||||
/// </summary>
|
||||
@ -168,16 +167,16 @@ namespace BreCalClient.misc.Api
|
||||
/// <exception cref="BreCalClient.misc.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="shipcall">Creates a new ship call. **Do not** provide id parameter.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> ShipcallsPostWithHttpInfo(Shipcall shipcall, int operationIndex = 0);
|
||||
/// <returns>ApiResponse of Id</returns>
|
||||
ApiResponse<Id> ShipcallsPostWithHttpInfo(Shipcall shipcall, int operationIndex = 0);
|
||||
/// <summary>
|
||||
/// Updates a ship call
|
||||
/// </summary>
|
||||
/// <exception cref="BreCalClient.misc.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="shipcall">Creates a new ship call. The id parameter is **required**.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns></returns>
|
||||
void ShipcallsPut(Shipcall shipcall, int operationIndex = 0);
|
||||
/// <returns>Id</returns>
|
||||
Id ShipcallsPut(Shipcall shipcall, int operationIndex = 0);
|
||||
/// <summary>
|
||||
/// Updates a ship call
|
||||
/// </summary>
|
||||
@ -187,8 +186,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <exception cref="BreCalClient.misc.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="shipcall">Creates a new ship call. The id parameter is **required**.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> ShipcallsPutWithHttpInfo(Shipcall shipcall, int operationIndex = 0);
|
||||
/// <returns>ApiResponse of Id</returns>
|
||||
ApiResponse<Id> ShipcallsPutWithHttpInfo(Shipcall shipcall, int operationIndex = 0);
|
||||
/// <summary>
|
||||
/// gets a list of registered shipcalls
|
||||
/// </summary>
|
||||
@ -250,8 +249,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <exception cref="BreCalClient.misc.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="times">Times entry that will be added to the ship call. **Do not** provide id parameter.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns></returns>
|
||||
void TimesPost(Times times, int operationIndex = 0);
|
||||
/// <returns>Id</returns>
|
||||
Id TimesPost(Times times, int operationIndex = 0);
|
||||
/// <summary>
|
||||
/// Create a new times entry for a ship call
|
||||
/// </summary>
|
||||
@ -261,16 +260,16 @@ namespace BreCalClient.misc.Api
|
||||
/// <exception cref="BreCalClient.misc.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="times">Times entry that will be added to the ship call. **Do not** provide id parameter.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TimesPostWithHttpInfo(Times times, int operationIndex = 0);
|
||||
/// <returns>ApiResponse of Id</returns>
|
||||
ApiResponse<Id> TimesPostWithHttpInfo(Times times, int operationIndex = 0);
|
||||
/// <summary>
|
||||
/// Update a times entry for a ship call
|
||||
/// </summary>
|
||||
/// <exception cref="BreCalClient.misc.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="times">Times entry that will be added to the ship call. The id parameter is **required**.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns></returns>
|
||||
void TimesPut(Times times, int operationIndex = 0);
|
||||
/// <returns>Id</returns>
|
||||
Id TimesPut(Times times, int operationIndex = 0);
|
||||
/// <summary>
|
||||
/// Update a times entry for a ship call
|
||||
/// </summary>
|
||||
@ -280,8 +279,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <exception cref="BreCalClient.misc.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="times">Times entry that will be added to the ship call. The id parameter is **required**.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
ApiResponse<Object> TimesPutWithHttpInfo(Times times, int operationIndex = 0);
|
||||
/// <returns>ApiResponse of Id</returns>
|
||||
ApiResponse<Id> TimesPutWithHttpInfo(Times times, int operationIndex = 0);
|
||||
/// <summary>
|
||||
/// Update user details (first/last name, phone, password)
|
||||
/// </summary>
|
||||
@ -437,8 +436,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <param name="shipcall">Creates a new ship call. **Do not** provide id parameter.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task ShipcallsPostAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <returns>Task of Id</returns>
|
||||
System.Threading.Tasks.Task<Id> ShipcallsPostAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <summary>
|
||||
/// Create a new ship call
|
||||
/// </summary>
|
||||
@ -449,8 +448,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <param name="shipcall">Creates a new ship call. **Do not** provide id parameter.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> ShipcallsPostWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <returns>Task of ApiResponse (Id)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Id>> ShipcallsPostWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <summary>
|
||||
/// Updates a ship call
|
||||
/// </summary>
|
||||
@ -461,8 +460,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <param name="shipcall">Creates a new ship call. The id parameter is **required**.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task ShipcallsPutAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <returns>Task of Id</returns>
|
||||
System.Threading.Tasks.Task<Id> ShipcallsPutAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <summary>
|
||||
/// Updates a ship call
|
||||
/// </summary>
|
||||
@ -473,8 +472,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <param name="shipcall">Creates a new ship call. The id parameter is **required**.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> ShipcallsPutWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <returns>Task of ApiResponse (Id)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Id>> ShipcallsPutWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <summary>
|
||||
/// gets a list of registered shipcalls
|
||||
/// </summary>
|
||||
@ -555,8 +554,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <param name="times">Times entry that will be added to the ship call. **Do not** provide id parameter.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task TimesPostAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <returns>Task of Id</returns>
|
||||
System.Threading.Tasks.Task<Id> TimesPostAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <summary>
|
||||
/// Create a new times entry for a ship call
|
||||
/// </summary>
|
||||
@ -567,8 +566,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <param name="times">Times entry that will be added to the ship call. **Do not** provide id parameter.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TimesPostWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <returns>Task of ApiResponse (Id)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Id>> TimesPostWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <summary>
|
||||
/// Update a times entry for a ship call
|
||||
/// </summary>
|
||||
@ -579,8 +578,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <param name="times">Times entry that will be added to the ship call. The id parameter is **required**.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
System.Threading.Tasks.Task TimesPutAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <returns>Task of Id</returns>
|
||||
System.Threading.Tasks.Task<Id> TimesPutAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <summary>
|
||||
/// Update a times entry for a ship call
|
||||
/// </summary>
|
||||
@ -591,8 +590,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <param name="times">Times entry that will be added to the ship call. The id parameter is **required**.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Object>> TimesPutWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <returns>Task of ApiResponse (Id)</returns>
|
||||
System.Threading.Tasks.Task<ApiResponse<Id>> TimesPutWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
|
||||
/// <summary>
|
||||
/// Update user details (first/last name, phone, password)
|
||||
/// </summary>
|
||||
@ -1330,10 +1329,11 @@ namespace BreCalClient.misc.Api
|
||||
/// <exception cref="BreCalClient.misc.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="shipcall">Creates a new ship call. **Do not** provide id parameter.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns></returns>
|
||||
public void ShipcallsPost(Shipcall shipcall, int operationIndex = 0)
|
||||
/// <returns>Id</returns>
|
||||
public Id ShipcallsPost(Shipcall shipcall, int operationIndex = 0)
|
||||
{
|
||||
ShipcallsPostWithHttpInfo(shipcall);
|
||||
BreCalClient.misc.Client.ApiResponse<Id> localVarResponse = ShipcallsPostWithHttpInfo(shipcall);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
/// <summary>
|
||||
/// Create a new ship call
|
||||
@ -1341,8 +1341,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <exception cref="BreCalClient.misc.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="shipcall">Creates a new ship call. **Do not** provide id parameter.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public BreCalClient.misc.Client.ApiResponse<Object> ShipcallsPostWithHttpInfo(Shipcall shipcall, int operationIndex = 0)
|
||||
/// <returns>ApiResponse of Id</returns>
|
||||
public BreCalClient.misc.Client.ApiResponse<Id> ShipcallsPostWithHttpInfo(Shipcall shipcall, int operationIndex = 0)
|
||||
{
|
||||
// verify the required parameter 'shipcall' is set
|
||||
if (shipcall == null)
|
||||
@ -1376,7 +1376,7 @@ namespace BreCalClient.misc.Api
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
|
||||
}
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<Object>("/shipcalls", localVarRequestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Post<Id>("/shipcalls", localVarRequestOptions, this.Configuration);
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("ShipcallsPost", localVarResponse);
|
||||
@ -1394,10 +1394,11 @@ namespace BreCalClient.misc.Api
|
||||
/// <param name="shipcall">Creates a new ship call. **Do not** provide id parameter.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task ShipcallsPostAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
/// <returns>Task of Id</returns>
|
||||
public async System.Threading.Tasks.Task<Id> ShipcallsPostAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
await ShipcallsPostWithHttpInfoAsync(shipcall, operationIndex, cancellationToken).ConfigureAwait(false);
|
||||
BreCalClient.misc.Client.ApiResponse<Id> localVarResponse = await ShipcallsPostWithHttpInfoAsync(shipcall, operationIndex, cancellationToken).ConfigureAwait(false);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
/// <summary>
|
||||
/// Create a new ship call
|
||||
@ -1406,8 +1407,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <param name="shipcall">Creates a new ship call. **Do not** provide id parameter.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<BreCalClient.misc.Client.ApiResponse<Object>> ShipcallsPostWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
/// <returns>Task of ApiResponse (Id)</returns>
|
||||
public async System.Threading.Tasks.Task<BreCalClient.misc.Client.ApiResponse<Id>> ShipcallsPostWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
// verify the required parameter 'shipcall' is set
|
||||
if (shipcall == null)
|
||||
@ -1441,7 +1442,7 @@ namespace BreCalClient.misc.Api
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
|
||||
}
|
||||
// make the HTTP request
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/shipcalls", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Id>("/shipcalls", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("ShipcallsPost", localVarResponse);
|
||||
@ -1458,10 +1459,11 @@ namespace BreCalClient.misc.Api
|
||||
/// <exception cref="BreCalClient.misc.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="shipcall">Creates a new ship call. The id parameter is **required**.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns></returns>
|
||||
public void ShipcallsPut(Shipcall shipcall, int operationIndex = 0)
|
||||
/// <returns>Id</returns>
|
||||
public Id ShipcallsPut(Shipcall shipcall, int operationIndex = 0)
|
||||
{
|
||||
ShipcallsPutWithHttpInfo(shipcall);
|
||||
BreCalClient.misc.Client.ApiResponse<Id> localVarResponse = ShipcallsPutWithHttpInfo(shipcall);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
/// <summary>
|
||||
/// Updates a ship call
|
||||
@ -1469,8 +1471,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <exception cref="BreCalClient.misc.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="shipcall">Creates a new ship call. The id parameter is **required**.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public BreCalClient.misc.Client.ApiResponse<Object> ShipcallsPutWithHttpInfo(Shipcall shipcall, int operationIndex = 0)
|
||||
/// <returns>ApiResponse of Id</returns>
|
||||
public BreCalClient.misc.Client.ApiResponse<Id> ShipcallsPutWithHttpInfo(Shipcall shipcall, int operationIndex = 0)
|
||||
{
|
||||
// verify the required parameter 'shipcall' is set
|
||||
if (shipcall == null)
|
||||
@ -1504,7 +1506,7 @@ namespace BreCalClient.misc.Api
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
|
||||
}
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Put<Object>("/shipcalls", localVarRequestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Put<Id>("/shipcalls", localVarRequestOptions, this.Configuration);
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("ShipcallsPut", localVarResponse);
|
||||
@ -1522,10 +1524,11 @@ namespace BreCalClient.misc.Api
|
||||
/// <param name="shipcall">Creates a new ship call. The id parameter is **required**.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task ShipcallsPutAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
/// <returns>Task of Id</returns>
|
||||
public async System.Threading.Tasks.Task<Id> ShipcallsPutAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
await ShipcallsPutWithHttpInfoAsync(shipcall, operationIndex, cancellationToken).ConfigureAwait(false);
|
||||
BreCalClient.misc.Client.ApiResponse<Id> localVarResponse = await ShipcallsPutWithHttpInfoAsync(shipcall, operationIndex, cancellationToken).ConfigureAwait(false);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
/// <summary>
|
||||
/// Updates a ship call
|
||||
@ -1534,8 +1537,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <param name="shipcall">Creates a new ship call. The id parameter is **required**.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<BreCalClient.misc.Client.ApiResponse<Object>> ShipcallsPutWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
/// <returns>Task of ApiResponse (Id)</returns>
|
||||
public async System.Threading.Tasks.Task<BreCalClient.misc.Client.ApiResponse<Id>> ShipcallsPutWithHttpInfoAsync(Shipcall shipcall, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
// verify the required parameter 'shipcall' is set
|
||||
if (shipcall == null)
|
||||
@ -1569,7 +1572,7 @@ namespace BreCalClient.misc.Api
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
|
||||
}
|
||||
// make the HTTP request
|
||||
var localVarResponse = await this.AsynchronousClient.PutAsync<Object>("/shipcalls", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
var localVarResponse = await this.AsynchronousClient.PutAsync<Id>("/shipcalls", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("ShipcallsPut", localVarResponse);
|
||||
@ -1938,10 +1941,11 @@ namespace BreCalClient.misc.Api
|
||||
/// <exception cref="BreCalClient.misc.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="times">Times entry that will be added to the ship call. **Do not** provide id parameter.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns></returns>
|
||||
public void TimesPost(Times times, int operationIndex = 0)
|
||||
/// <returns>Id</returns>
|
||||
public Id TimesPost(Times times, int operationIndex = 0)
|
||||
{
|
||||
TimesPostWithHttpInfo(times);
|
||||
BreCalClient.misc.Client.ApiResponse<Id> localVarResponse = TimesPostWithHttpInfo(times);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
/// <summary>
|
||||
/// Create a new times entry for a ship call
|
||||
@ -1949,8 +1953,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <exception cref="BreCalClient.misc.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="times">Times entry that will be added to the ship call. **Do not** provide id parameter.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public BreCalClient.misc.Client.ApiResponse<Object> TimesPostWithHttpInfo(Times times, int operationIndex = 0)
|
||||
/// <returns>ApiResponse of Id</returns>
|
||||
public BreCalClient.misc.Client.ApiResponse<Id> TimesPostWithHttpInfo(Times times, int operationIndex = 0)
|
||||
{
|
||||
// verify the required parameter 'times' is set
|
||||
if (times == null)
|
||||
@ -1984,7 +1988,7 @@ namespace BreCalClient.misc.Api
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
|
||||
}
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Post<Object>("/times", localVarRequestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Post<Id>("/times", localVarRequestOptions, this.Configuration);
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("TimesPost", localVarResponse);
|
||||
@ -2002,10 +2006,11 @@ namespace BreCalClient.misc.Api
|
||||
/// <param name="times">Times entry that will be added to the ship call. **Do not** provide id parameter.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task TimesPostAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
/// <returns>Task of Id</returns>
|
||||
public async System.Threading.Tasks.Task<Id> TimesPostAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
await TimesPostWithHttpInfoAsync(times, operationIndex, cancellationToken).ConfigureAwait(false);
|
||||
BreCalClient.misc.Client.ApiResponse<Id> localVarResponse = await TimesPostWithHttpInfoAsync(times, operationIndex, cancellationToken).ConfigureAwait(false);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
/// <summary>
|
||||
/// Create a new times entry for a ship call
|
||||
@ -2014,8 +2019,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <param name="times">Times entry that will be added to the ship call. **Do not** provide id parameter.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<BreCalClient.misc.Client.ApiResponse<Object>> TimesPostWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
/// <returns>Task of ApiResponse (Id)</returns>
|
||||
public async System.Threading.Tasks.Task<BreCalClient.misc.Client.ApiResponse<Id>> TimesPostWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
// verify the required parameter 'times' is set
|
||||
if (times == null)
|
||||
@ -2049,7 +2054,7 @@ namespace BreCalClient.misc.Api
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
|
||||
}
|
||||
// make the HTTP request
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Object>("/times", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
var localVarResponse = await this.AsynchronousClient.PostAsync<Id>("/times", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("TimesPost", localVarResponse);
|
||||
@ -2066,10 +2071,11 @@ namespace BreCalClient.misc.Api
|
||||
/// <exception cref="BreCalClient.misc.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="times">Times entry that will be added to the ship call. The id parameter is **required**.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns></returns>
|
||||
public void TimesPut(Times times, int operationIndex = 0)
|
||||
/// <returns>Id</returns>
|
||||
public Id TimesPut(Times times, int operationIndex = 0)
|
||||
{
|
||||
TimesPutWithHttpInfo(times);
|
||||
BreCalClient.misc.Client.ApiResponse<Id> localVarResponse = TimesPutWithHttpInfo(times);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
/// <summary>
|
||||
/// Update a times entry for a ship call
|
||||
@ -2077,8 +2083,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <exception cref="BreCalClient.misc.Client.ApiException">Thrown when fails to make API call</exception>
|
||||
/// <param name="times">Times entry that will be added to the ship call. The id parameter is **required**.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <returns>ApiResponse of Object(void)</returns>
|
||||
public BreCalClient.misc.Client.ApiResponse<Object> TimesPutWithHttpInfo(Times times, int operationIndex = 0)
|
||||
/// <returns>ApiResponse of Id</returns>
|
||||
public BreCalClient.misc.Client.ApiResponse<Id> TimesPutWithHttpInfo(Times times, int operationIndex = 0)
|
||||
{
|
||||
// verify the required parameter 'times' is set
|
||||
if (times == null)
|
||||
@ -2112,7 +2118,7 @@ namespace BreCalClient.misc.Api
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
|
||||
}
|
||||
// make the HTTP request
|
||||
var localVarResponse = this.Client.Put<Object>("/times", localVarRequestOptions, this.Configuration);
|
||||
var localVarResponse = this.Client.Put<Id>("/times", localVarRequestOptions, this.Configuration);
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("TimesPut", localVarResponse);
|
||||
@ -2130,10 +2136,11 @@ namespace BreCalClient.misc.Api
|
||||
/// <param name="times">Times entry that will be added to the ship call. The id parameter is **required**.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of void</returns>
|
||||
public async System.Threading.Tasks.Task TimesPutAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
/// <returns>Task of Id</returns>
|
||||
public async System.Threading.Tasks.Task<Id> TimesPutAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
await TimesPutWithHttpInfoAsync(times, operationIndex, cancellationToken).ConfigureAwait(false);
|
||||
BreCalClient.misc.Client.ApiResponse<Id> localVarResponse = await TimesPutWithHttpInfoAsync(times, operationIndex, cancellationToken).ConfigureAwait(false);
|
||||
return localVarResponse.Data;
|
||||
}
|
||||
/// <summary>
|
||||
/// Update a times entry for a ship call
|
||||
@ -2142,8 +2149,8 @@ namespace BreCalClient.misc.Api
|
||||
/// <param name="times">Times entry that will be added to the ship call. The id parameter is **required**.</param>
|
||||
/// <param name="operationIndex">Index associated with the operation.</param>
|
||||
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
|
||||
/// <returns>Task of ApiResponse</returns>
|
||||
public async System.Threading.Tasks.Task<BreCalClient.misc.Client.ApiResponse<Object>> TimesPutWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
/// <returns>Task of ApiResponse (Id)</returns>
|
||||
public async System.Threading.Tasks.Task<BreCalClient.misc.Client.ApiResponse<Id>> TimesPutWithHttpInfoAsync(Times times, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
|
||||
{
|
||||
// verify the required parameter 'times' is set
|
||||
if (times == null)
|
||||
@ -2177,7 +2184,7 @@ namespace BreCalClient.misc.Api
|
||||
localVarRequestOptions.HeaderParameters.Add("Authorization", this.Configuration.GetApiKeyWithPrefix("Authorization"));
|
||||
}
|
||||
// make the HTTP request
|
||||
var localVarResponse = await this.AsynchronousClient.PutAsync<Object>("/times", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
var localVarResponse = await this.AsynchronousClient.PutAsync<Id>("/times", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false);
|
||||
if (this.ExceptionFactory != null)
|
||||
{
|
||||
Exception _exception = this.ExceptionFactory("TimesPut", localVarResponse);
|
||||
@ -5338,6 +5345,107 @@ namespace BreCalClient.misc.Model
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Bremen calling API
|
||||
*
|
||||
* Administer DEBRE ship calls, times and notifications
|
||||
*
|
||||
* The version of the OpenAPI document: 0.6.0
|
||||
* Contact: info@textbausteine.net
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
namespace BreCalClient.misc.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// A unique identifier for an entity
|
||||
/// </summary>
|
||||
[DataContract(Name = "Id")]
|
||||
public partial class Id : IEquatable<Id>, IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Id" /> class.
|
||||
/// </summary>
|
||||
/// <param name="varId">varId.</param>
|
||||
public Id(int varId = default(int))
|
||||
{
|
||||
this.VarId = varId;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or Sets VarId
|
||||
/// </summary>
|
||||
[DataMember(Name = "id", EmitDefaultValue = true)]
|
||||
public int VarId { get; set; }
|
||||
/// <summary>
|
||||
/// Returns the string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>String presentation of the object</returns>
|
||||
public override string ToString()
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("class Id {\n");
|
||||
sb.Append(" VarId: ").Append(VarId).Append("\n");
|
||||
sb.Append("}\n");
|
||||
return sb.ToString();
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns the JSON string presentation of the object
|
||||
/// </summary>
|
||||
/// <returns>JSON string presentation of the object</returns>
|
||||
public virtual string ToJson()
|
||||
{
|
||||
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns true if objects are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Object to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public override bool Equals(object input)
|
||||
{
|
||||
return this.Equals(input as Id);
|
||||
}
|
||||
/// <summary>
|
||||
/// Returns true if Id instances are equal
|
||||
/// </summary>
|
||||
/// <param name="input">Instance of Id to be compared</param>
|
||||
/// <returns>Boolean</returns>
|
||||
public bool Equals(Id input)
|
||||
{
|
||||
if (input == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return
|
||||
(
|
||||
this.VarId == input.VarId ||
|
||||
this.VarId.Equals(input.VarId)
|
||||
);
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets the hash code
|
||||
/// </summary>
|
||||
/// <returns>Hash code</returns>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
unchecked // Overflow is fine, just wrap
|
||||
{
|
||||
int hashCode = 41;
|
||||
hashCode = (hashCode * 59) + this.VarId.GetHashCode();
|
||||
return hashCode;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Bremen calling API
|
||||
*
|
||||
@ -6397,10 +6505,12 @@ namespace BreCalClient.misc.Model
|
||||
/// <param name="anchored">anchored.</param>
|
||||
/// <param name="mooredLock">mooredLock.</param>
|
||||
/// <param name="canceled">canceled.</param>
|
||||
/// <param name="evaluation">evaluation.</param>
|
||||
/// <param name="evaluationMessage">evaluationMessage.</param>
|
||||
/// <param name="participants">participants.</param>
|
||||
/// <param name="created">created.</param>
|
||||
/// <param name="modified">modified.</param>
|
||||
public Shipcall(int id = default(int), int shipId = default(int), int type = default(int), DateTime eta = default(DateTime), string voyage = default(string), DateTime? etd = default(DateTime?), int? arrivalBerthId = default(int?), int? departureBerthId = default(int?), bool? tugRequired = default(bool?), bool? pilotRequired = default(bool?), int? flags = default(int?), bool? pierSide = default(bool?), bool? bunkering = default(bool?), bool? replenishingTerminal = default(bool?), bool? replenishingLock = default(bool?), float? draft = default(float?), DateTime? tidalWindowFrom = default(DateTime?), DateTime? tidalWindowTo = default(DateTime?), bool? rainSensitiveCargo = default(bool?), int? recommendedTugs = default(int?), bool? anchored = default(bool?), bool? mooredLock = default(bool?), bool? canceled = default(bool?), List<int> participants = default(List<int>), DateTime created = default(DateTime), DateTime? modified = default(DateTime?))
|
||||
public Shipcall(int id = default(int), int shipId = default(int), int type = default(int), DateTime eta = default(DateTime), string voyage = default(string), DateTime? etd = default(DateTime?), int? arrivalBerthId = default(int?), int? departureBerthId = default(int?), bool? tugRequired = default(bool?), bool? pilotRequired = default(bool?), int? flags = default(int?), bool? pierSide = default(bool?), bool? bunkering = default(bool?), bool? replenishingTerminal = default(bool?), bool? replenishingLock = default(bool?), float? draft = default(float?), DateTime? tidalWindowFrom = default(DateTime?), DateTime? tidalWindowTo = default(DateTime?), bool? rainSensitiveCargo = default(bool?), int? recommendedTugs = default(int?), bool? anchored = default(bool?), bool? mooredLock = default(bool?), bool? canceled = default(bool?), int? evaluation = default(int?), string evaluationMessage = default(string), List<int> participants = default(List<int>), DateTime created = default(DateTime), DateTime? modified = default(DateTime?))
|
||||
{
|
||||
this.Id = id;
|
||||
this.ShipId = shipId;
|
||||
@ -6425,6 +6535,8 @@ namespace BreCalClient.misc.Model
|
||||
this.Anchored = anchored;
|
||||
this.MooredLock = mooredLock;
|
||||
this.Canceled = canceled;
|
||||
this.Evaluation = evaluation;
|
||||
this.EvaluationMessage = evaluationMessage;
|
||||
this.Participants = participants;
|
||||
this.Created = created;
|
||||
this.Modified = modified;
|
||||
@ -6546,6 +6658,16 @@ namespace BreCalClient.misc.Model
|
||||
[DataMember(Name = "canceled", EmitDefaultValue = true)]
|
||||
public bool? Canceled { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or Sets Evaluation
|
||||
/// </summary>
|
||||
[DataMember(Name = "evaluation", EmitDefaultValue = true)]
|
||||
public int? Evaluation { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or Sets EvaluationMessage
|
||||
/// </summary>
|
||||
[DataMember(Name = "evaluation_message", EmitDefaultValue = true)]
|
||||
public string EvaluationMessage { get; set; }
|
||||
/// <summary>
|
||||
/// Gets or Sets Participants
|
||||
/// </summary>
|
||||
/// <example>[1,5,7]</example>
|
||||
@ -6592,6 +6714,8 @@ namespace BreCalClient.misc.Model
|
||||
sb.Append(" Anchored: ").Append(Anchored).Append("\n");
|
||||
sb.Append(" MooredLock: ").Append(MooredLock).Append("\n");
|
||||
sb.Append(" Canceled: ").Append(Canceled).Append("\n");
|
||||
sb.Append(" Evaluation: ").Append(Evaluation).Append("\n");
|
||||
sb.Append(" EvaluationMessage: ").Append(EvaluationMessage).Append("\n");
|
||||
sb.Append(" Participants: ").Append(Participants).Append("\n");
|
||||
sb.Append(" Created: ").Append(Created).Append("\n");
|
||||
sb.Append(" Modified: ").Append(Modified).Append("\n");
|
||||
@ -6739,6 +6863,16 @@ namespace BreCalClient.misc.Model
|
||||
(this.Canceled != null &&
|
||||
this.Canceled.Equals(input.Canceled))
|
||||
) &&
|
||||
(
|
||||
this.Evaluation == input.Evaluation ||
|
||||
(this.Evaluation != null &&
|
||||
this.Evaluation.Equals(input.Evaluation))
|
||||
) &&
|
||||
(
|
||||
this.EvaluationMessage == input.EvaluationMessage ||
|
||||
(this.EvaluationMessage != null &&
|
||||
this.EvaluationMessage.Equals(input.EvaluationMessage))
|
||||
) &&
|
||||
(
|
||||
this.Participants == input.Participants ||
|
||||
this.Participants != null &&
|
||||
@ -6848,6 +6982,14 @@ namespace BreCalClient.misc.Model
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Canceled.GetHashCode();
|
||||
}
|
||||
if (this.Evaluation != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Evaluation.GetHashCode();
|
||||
}
|
||||
if (this.EvaluationMessage != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.EvaluationMessage.GetHashCode();
|
||||
}
|
||||
if (this.Participants != null)
|
||||
{
|
||||
hashCode = (hashCode * 59) + this.Participants.GetHashCode();
|
||||
@ -7490,6 +7632,5 @@ namespace BreCalClient.misc.Model
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS8073 // The result of the expression is always the same since a value of this type is never equal to 'null'
|
||||
}
|
||||
|
||||
|
||||
@ -100,6 +100,8 @@ paths:
|
||||
schema:
|
||||
$ref: "#/components/schemas/shipcall"
|
||||
responses:
|
||||
201:
|
||||
$ref: "#/components/responses/201"
|
||||
400:
|
||||
$ref: "#/components/responses/400"
|
||||
401:
|
||||
@ -119,6 +121,8 @@ paths:
|
||||
schema:
|
||||
$ref: "#/components/schemas/shipcall"
|
||||
responses:
|
||||
200:
|
||||
$ref: "#/components/responses/200"
|
||||
400:
|
||||
$ref: "#/components/responses/400"
|
||||
401:
|
||||
@ -210,6 +214,8 @@ paths:
|
||||
schema:
|
||||
$ref: "#/components/schemas/times"
|
||||
responses:
|
||||
201:
|
||||
$ref: "#/components/responses/201"
|
||||
400:
|
||||
$ref: "#/components/responses/400"
|
||||
401:
|
||||
@ -229,6 +235,8 @@ paths:
|
||||
schema:
|
||||
$ref: "#/components/schemas/times"
|
||||
responses:
|
||||
200:
|
||||
$ref: "#/components/responses/200"
|
||||
400:
|
||||
$ref: "#/components/responses/400"
|
||||
401:
|
||||
@ -702,7 +710,12 @@ components:
|
||||
user_phone:
|
||||
type: string
|
||||
nullable: true
|
||||
|
||||
Id:
|
||||
type: object
|
||||
description: A unique identifier for an entity
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
Error:
|
||||
type: object
|
||||
required:
|
||||
@ -718,6 +731,18 @@ components:
|
||||
in: header
|
||||
name: Authorization
|
||||
responses:
|
||||
200:
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Id"
|
||||
201:
|
||||
description: Created
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Id"
|
||||
400:
|
||||
description: Invalid input
|
||||
content:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user