Owneat Technical Guide main Help

Class TableController

Namespace: Ordering.API.Controllers
Assembly: Ordering.API.dll

Controller that manage Ordering.Domain.Aggregates.TableAggregate.Tables.

[ApiController] [ApiVersion("1.0")] [Route("api/v{version:apiVersion}/[controller]s")] public sealed class TableController : ControllerBase

Inheritance

objectControllerBase ← TableController

Inherited Members

ControllerBase.StatusCode\(int\), ControllerBase.StatusCode\(int, object?\), ControllerBase.Content\(string\), ControllerBase.Content\(string, string\), ControllerBase.Content\(string, string, Encoding\), ControllerBase.Content\(string, MediaTypeHeaderValue?\), ControllerBase.NoContent\(\), ControllerBase.Ok\(\), ControllerBase.Ok\(object?\), ControllerBase.Redirect\(string\), ControllerBase.RedirectPermanent\(string\), ControllerBase.RedirectPreserveMethod\(string\), ControllerBase.RedirectPermanentPreserveMethod\(string\), ControllerBase.LocalRedirect\(string\), ControllerBase.LocalRedirectPermanent\(string\), ControllerBase.LocalRedirectPreserveMethod\(string\), ControllerBase.LocalRedirectPermanentPreserveMethod\(string\), ControllerBase.RedirectToAction\(\), ControllerBase.RedirectToAction\(string?\), ControllerBase.RedirectToAction\(string?, object?\), ControllerBase.RedirectToAction\(string?, string?\), ControllerBase.RedirectToAction\(string?, string?, object?\), ControllerBase.RedirectToAction\(string?, string?, string?\), ControllerBase.RedirectToAction\(string?, string?, object?, string?\), ControllerBase.RedirectToActionPreserveMethod\(string?, string?, object?, string?\), ControllerBase.RedirectToActionPermanent\(string?\), ControllerBase.RedirectToActionPermanent\(string?, object?\), ControllerBase.RedirectToActionPermanent\(string?, string?\), ControllerBase.RedirectToActionPermanent\(string?, string?, string?\), ControllerBase.RedirectToActionPermanent\(string?, string?, object?\), ControllerBase.RedirectToActionPermanent\(string?, string?, object?, string?\), ControllerBase.RedirectToActionPermanentPreserveMethod\(string?, string?, object?, string?\), ControllerBase.RedirectToRoute\(string?\), ControllerBase.RedirectToRoute\(object?\), ControllerBase.RedirectToRoute\(string?, object?\), ControllerBase.RedirectToRoute\(string?, string?\), ControllerBase.RedirectToRoute\(string?, object?, string?\), ControllerBase.RedirectToRoutePreserveMethod\(string?, object?, string?\), ControllerBase.RedirectToRoutePermanent\(string?\), ControllerBase.RedirectToRoutePermanent\(object?\), ControllerBase.RedirectToRoutePermanent\(string?, object?\), ControllerBase.RedirectToRoutePermanent\(string?, string?\), ControllerBase.RedirectToRoutePermanent\(string?, object?, string?\), ControllerBase.RedirectToRoutePermanentPreserveMethod\(string?, object?, string?\), ControllerBase.RedirectToPage\(string\), ControllerBase.RedirectToPage\(string, object?\), ControllerBase.RedirectToPage\(string, string?\), ControllerBase.RedirectToPage\(string, string?, object?\), ControllerBase.RedirectToPage\(string, string?, string?\), ControllerBase.RedirectToPage\(string, string?, object?, string?\), ControllerBase.RedirectToPagePermanent\(string\), ControllerBase.RedirectToPagePermanent\(string, object?\), ControllerBase.RedirectToPagePermanent\(string, string?\), ControllerBase.RedirectToPagePermanent\(string, string?, string?\), ControllerBase.RedirectToPagePermanent\(string, string?, object?, string?\), ControllerBase.RedirectToPagePreserveMethod\(string, string?, object?, string?\), ControllerBase.RedirectToPagePermanentPreserveMethod\(string, string?, object?, string?\), ControllerBase.File\(byte\[\], string\), ControllerBase.File\(byte\[\], string, bool\), ControllerBase.File\(byte\[\], string, string?\), ControllerBase.File\(byte\[\], string, string?, bool\), ControllerBase.File\(byte\[\], string, DateTimeOffset?, EntityTagHeaderValue\), ControllerBase.File\(byte\[\], string, DateTimeOffset?, EntityTagHeaderValue, bool\), ControllerBase.File\(byte\[\], string, string?, DateTimeOffset?, EntityTagHeaderValue\), ControllerBase.File\(byte\[\], string, string?, DateTimeOffset?, EntityTagHeaderValue, bool\), ControllerBase.File\(Stream, string\), ControllerBase.File\(Stream, string, bool\), ControllerBase.File\(Stream, string, string?\), ControllerBase.File\(Stream, string, string?, bool\), ControllerBase.File\(Stream, string, DateTimeOffset?, EntityTagHeaderValue\), ControllerBase.File\(Stream, string, DateTimeOffset?, EntityTagHeaderValue, bool\), ControllerBase.File\(Stream, string, string?, DateTimeOffset?, EntityTagHeaderValue\), ControllerBase.File\(Stream, string, string?, DateTimeOffset?, EntityTagHeaderValue, bool\), ControllerBase.File\(string, string\), ControllerBase.File\(string, string, bool\), ControllerBase.File\(string, string, string?\), ControllerBase.File\(string, string, string?, bool\), ControllerBase.File\(string, string, DateTimeOffset?, EntityTagHeaderValue\), ControllerBase.File\(string, string, DateTimeOffset?, EntityTagHeaderValue, bool\), ControllerBase.File\(string, string, string?, DateTimeOffset?, EntityTagHeaderValue\), ControllerBase.File\(string, string, string?, DateTimeOffset?, EntityTagHeaderValue, bool\), ControllerBase.PhysicalFile\(string, string\), ControllerBase.PhysicalFile\(string, string, bool\), ControllerBase.PhysicalFile\(string, string, string?\), ControllerBase.PhysicalFile\(string, string, string?, bool\), ControllerBase.PhysicalFile\(string, string, DateTimeOffset?, EntityTagHeaderValue\), ControllerBase.PhysicalFile\(string, string, DateTimeOffset?, EntityTagHeaderValue, bool\), ControllerBase.PhysicalFile\(string, string, string?, DateTimeOffset?, EntityTagHeaderValue\), ControllerBase.PhysicalFile\(string, string, string?, DateTimeOffset?, EntityTagHeaderValue, bool\), ControllerBase.Unauthorized\(\), ControllerBase.Unauthorized\(object?\), ControllerBase.NotFound\(\), ControllerBase.NotFound\(object?\), ControllerBase.BadRequest\(\), ControllerBase.BadRequest\(object?\), ControllerBase.BadRequest\(ModelStateDictionary\), ControllerBase.UnprocessableEntity\(\), ControllerBase.UnprocessableEntity\(object?\), ControllerBase.UnprocessableEntity\(ModelStateDictionary\), ControllerBase.Conflict\(\), ControllerBase.Conflict\(object?\), ControllerBase.Conflict\(ModelStateDictionary\), ControllerBase.Problem\(string?, string?, int?, string?, string?\), ControllerBase.ValidationProblem\(ValidationProblemDetails\), ControllerBase.ValidationProblem\(ModelStateDictionary\), ControllerBase.ValidationProblem\(\), ControllerBase.ValidationProblem\(string?, string?, int?, string?, string?, ModelStateDictionary?\), ControllerBase.Created\(\), ControllerBase.Created\(string?, object?\), ControllerBase.Created\(Uri?, object?\), ControllerBase.CreatedAtAction\(string?, object?\), ControllerBase.CreatedAtAction\(string?, object?, object?\), ControllerBase.CreatedAtAction\(string?, string?, object?, object?\), ControllerBase.CreatedAtRoute\(string?, object?\), ControllerBase.CreatedAtRoute\(object?, object?\), ControllerBase.CreatedAtRoute\(string?, object?, object?\), ControllerBase.Accepted\(\), ControllerBase.Accepted\(object?\), ControllerBase.Accepted\(Uri\), ControllerBase.Accepted\(string?\), ControllerBase.Accepted\(string?, object?\), ControllerBase.Accepted\(Uri, object?\), ControllerBase.AcceptedAtAction\(string?\), ControllerBase.AcceptedAtAction\(string?, string?\), ControllerBase.AcceptedAtAction\(string?, object?\), ControllerBase.AcceptedAtAction\(string?, string?, object?\), ControllerBase.AcceptedAtAction\(string?, object?, object?\), ControllerBase.AcceptedAtAction\(string?, string?, object?, object?\), ControllerBase.AcceptedAtRoute\(object?\), ControllerBase.AcceptedAtRoute\(string?\), ControllerBase.AcceptedAtRoute\(string?, object?\), ControllerBase.AcceptedAtRoute\(object?, object?\), ControllerBase.AcceptedAtRoute\(string?, object?, object?\), ControllerBase.Challenge\(\), ControllerBase.Challenge\(params string\[\]\), ControllerBase.Challenge\(AuthenticationProperties\), ControllerBase.Challenge\(AuthenticationProperties, params string\[\]\), ControllerBase.Forbid\(\), ControllerBase.Forbid\(params string\[\]\), ControllerBase.Forbid\(AuthenticationProperties\), ControllerBase.Forbid\(AuthenticationProperties, params string\[\]\), ControllerBase.SignIn\(ClaimsPrincipal\), ControllerBase.SignIn\(ClaimsPrincipal, string\), ControllerBase.SignIn\(ClaimsPrincipal, AuthenticationProperties\), ControllerBase.SignIn\(ClaimsPrincipal, AuthenticationProperties, string\), ControllerBase.SignOut\(\), ControllerBase.SignOut\(AuthenticationProperties\), ControllerBase.SignOut\(params string\[\]\), ControllerBase.SignOut\(AuthenticationProperties, params string\[\]\), ControllerBase.TryUpdateModelAsync<TModel\>\(TModel\), ControllerBase.TryUpdateModelAsync<TModel\>\(TModel, string\), ControllerBase.TryUpdateModelAsync<TModel\>\(TModel, string, IValueProvider\), ControllerBase.TryUpdateModelAsync<TModel\>\(TModel, string, params Expression<Func<TModel, object?\>\>\[\]\), ControllerBase.TryUpdateModelAsync<TModel\>\(TModel, string, Func<ModelMetadata, bool\>\), ControllerBase.TryUpdateModelAsync<TModel\>\(TModel, string, IValueProvider, params Expression<Func<TModel, object?\>\>\[\]\), ControllerBase.TryUpdateModelAsync<TModel\>\(TModel, string, IValueProvider, Func<ModelMetadata, bool\>\), ControllerBase.TryUpdateModelAsync\(object, Type, string\), ControllerBase.TryUpdateModelAsync\(object, Type, string, IValueProvider, Func<ModelMetadata, bool\>\), ControllerBase.TryValidateModel\(object\), ControllerBase.TryValidateModel\(object, string?\), ControllerBase.HttpContext, ControllerBase.Request, ControllerBase.Response, ControllerBase.RouteData, ControllerBase.ModelState, ControllerBase.ControllerContext, ControllerBase.MetadataProvider, ControllerBase.ModelBinderFactory, ControllerBase.Url, ControllerBase.ObjectValidator, ControllerBase.ProblemDetailsFactory, ControllerBase.User, ControllerBase.Empty, object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)

Constructors

TableController\(IMediator\)

Ordering.Domain.Aggregates.TableAggregate.Table controller constructor, injecting MediatR.IMediator to send requests.

public TableController(IMediator mediator)

Parameters

mediator IMediator

The MediatR.IMediator to inject for mediator query handling.

Methods

ChangeWaiterCalledIndicator\(Guid, ChangeWaiterCalledIndicatorCommand\)

Toggle the server call boolean.

[HttpPut("{tableGuid}/change-waiting-indicator")] [ProducesResponseType(typeof(Table), 200)] [ProducesResponseType(400)] [ProducesResponseType(401)] [ProducesResponseType(403)] [ProducesResponseType(404)] [ProducesResponseType(500)] public Task<ActionResult<Table>> ChangeWaiterCalledIndicator(Guid tableGuid, ChangeWaiterCalledIndicatorCommand command)

Parameters

tableGuid Guid

The unique identifier of the table that need a server or to dispose one from it.

command ChangeWaiterCalledIndicatorCommand

Command that contain the TableId to do the call for.

Returns

Task < ActionResult <Table\>\>

ClearTable\(Guid\)

Clear the table after lunch.

[HttpPut("{tableGuid}/clear")] [Authorize(Roles = "Admin, Owner, Staff")] [ProducesResponseType(typeof(Table), 200)] [ProducesResponseType(400)] [ProducesResponseType(401)] [ProducesResponseType(403)] [ProducesResponseType(404)] [ProducesResponseType(500)] public Task<ActionResult<Table>> ClearTable(Guid tableGuid)

Parameters

tableGuid Guid

Guid of the table.

Returns

Task < ActionResult <Table\>\>

ClearTableWithNewSitting\(Guid, CreateNewTableSittingCommand\)

Launch a new sitting by cleaning the table and setting customer limit.

[HttpPut("{tableGuid}/new-sitting")] [Authorize(Roles = "Admin, Owner, Staff")] [ProducesResponseType(typeof(Table), 200)] [ProducesResponseType(400)] [ProducesResponseType(401)] [ProducesResponseType(403)] [ProducesResponseType(404)] [ProducesResponseType(500)] public Task<ActionResult<Table>> ClearTableWithNewSitting(Guid tableGuid, CreateNewTableSittingCommand command)

Parameters

tableGuid Guid

Guid of the table.

command CreateNewTableSittingCommand

Command that contains the new customers count.

Returns

Task < ActionResult <Table\>\>

CreateTable\(CreateTableCommand\)

Create a new table.

[HttpPost] [ProducesResponseType(typeof(Table), 201)] [ProducesResponseType(400)] [ProducesResponseType(401)] [ProducesResponseType(403)] [ProducesResponseType(409)] [ProducesResponseType(500)] public Task<ActionResult<Table>> CreateTable(CreateTableCommand command)

Parameters

command CreateTableCommand

The table infos to create.

Returns

Task < ActionResult <Table\>\>

DeleteTable\(Guid\)

Delete a table.

[HttpDelete("{tableGuid}")] [ProducesResponseType(204)] [ProducesResponseType(400)] [ProducesResponseType(401)] [ProducesResponseType(403)] [ProducesResponseType(404)] public Task<ActionResult<Unit>> DeleteTable(Guid tableGuid)

Parameters

tableGuid Guid

The unique identifier of the table to delete.

Returns

Task < ActionResult <Unit\>\>

GetAllTables\(\)

Get the list of all tables.

[HttpGet] [ProducesResponseType(typeof(IEnumerable<Table>), 200)] [ProducesResponseType(401)] [ProducesResponseType(403)] [ProducesResponseType(500)] public Task<ActionResult<IEnumerable<Table>>> GetAllTables()

Returns

Task < ActionResult < IEnumerable <Table\>\>\>

GetTableById\(Guid\)

Get a specific table by their unique identifier.

[HttpGet("{tableGuid}")] [ProducesResponseType(typeof(Table), 200)] [ProducesResponseType(400)] [ProducesResponseType(401)] [ProducesResponseType(403)] [ProducesResponseType(404)] [ProducesResponseType(500)] public Task<ActionResult<Table>> GetTableById(Guid tableGuid)

Parameters

tableGuid Guid

The unique identifier for the table.

Returns

Task < ActionResult <Table\>\>

GetTablesForRestaurant\(Guid\)

Get all tables for a restaurant.

[HttpGet("restaurant/{restaurantGuid}")] [ProducesResponseType(typeof(IEnumerable<Table>), 200)] [ProducesResponseType(400)] [ProducesResponseType(401)] [ProducesResponseType(403)] [ProducesResponseType(404)] [ProducesResponseType(500)] public Task<ActionResult<IEnumerable<Table>>> GetTablesForRestaurant(Guid restaurantGuid)

Parameters

restaurantGuid Guid

The unique identifier of the restaurant to get tables for.

Returns

Task < ActionResult < IEnumerable <Table\>\>\>

MoveCustomerToTable\(Guid, Guid\)

Move a customer to another table.

[HttpPut("{receivingTableGuid}/customers/{movingCustomerGuid}/move")] [Authorize(Roles = "Admin, Owner, Staff")] [ProducesResponseType(typeof(Table), 204)] [ProducesResponseType(400)] [ProducesResponseType(401)] [ProducesResponseType(403)] [ProducesResponseType(404)] [ProducesResponseType(500)] public Task<ActionResult<Unit>> MoveCustomerToTable(Guid receivingTableGuid, Guid movingCustomerGuid)

Parameters

receivingTableGuid Guid

movingCustomerGuid Guid

Returns

Task < ActionResult <Unit\>\>

RedeemAnExpenseReport\(Guid, Guid, RedeemAnExpenseReportCommand\)

Command to redeem an expense report.

[HttpPost("{tableGuid}/customers/{customerGuid}/redeem-expense-report")] [ProducesResponseType(typeof(Table), 204)] [ProducesResponseType(400)] [ProducesResponseType(404)] [ProducesResponseType(500)] public Task<ActionResult<Unit>> RedeemAnExpenseReport(Guid tableGuid, Guid customerGuid, RedeemAnExpenseReportCommand command)

Parameters

tableGuid Guid

customerGuid Guid

command RedeemAnExpenseReportCommand

Returns

Task < ActionResult <Unit\>\>

ReorderTables\(ReorderTablesCommand\)

Update tables by bulk to change their order.

[HttpPut("reorder")] [Authorize(Roles = "Admin, Owner")] [ProducesResponseType(204)] [ProducesResponseType(400)] [ProducesResponseType(401)] [ProducesResponseType(403)] [ProducesResponseType(404)] [ProducesResponseType(500)] public Task<ActionResult<Unit>> ReorderTables(ReorderTablesCommand command)

Parameters

command ReorderTablesCommand

Dictionary that contain Guid and SortingIndex of the Tables.

Returns

Task < ActionResult <Unit\>\>

The updated tables.

SelectCustomerRemainingOrderLineItems\(Guid, Guid, SelectCustomerRemainingOrderLineItemsCommand\)

Set a customer as paying for his remaining order.

[HttpPut("{tableGuid}/select-customer-remaining-order-line-items/{customerGuid}")] [RateLimit(PeriodInSec = 5, Limit = 1, RouteParams = "customerGuid")] [ProducesResponseType(typeof(Table), 200)] [ProducesResponseType(400)] [ProducesResponseType(403)] [ProducesResponseType(429)] [ProducesResponseType(500)] public Task<ActionResult<Table>> SelectCustomerRemainingOrderLineItems(Guid tableGuid, Guid customerGuid, SelectCustomerRemainingOrderLineItemsCommand command)

Parameters

tableGuid Guid

The unique identifier of the table to update.

customerGuid Guid

The unique identifier of the customer to update.

command SelectCustomerRemainingOrderLineItemsCommand

The updates to apply to the table.

Returns

Task < ActionResult <Table\>\>

The updated table.

SelectRemainingOrderLineItems\(Guid, SelectRemainingOrderLineItemsCommand\)

Set a customer as paying for all.

[HttpPut("{tableGuid}/select-remaining-order-line-items")] [RateLimit(PeriodInSec = 5, Limit = 1, RouteParams = "tableGuid")] [ProducesResponseType(typeof(Table), 200)] [ProducesResponseType(400)] [ProducesResponseType(403)] [ProducesResponseType(429)] [ProducesResponseType(500)] public Task<ActionResult<Table>> SelectRemainingOrderLineItems(Guid tableGuid, SelectRemainingOrderLineItemsCommand command)

Parameters

tableGuid Guid

The unique identifier of the table to update.

command SelectRemainingOrderLineItemsCommand

The updates to apply to the table.

Returns

Task < ActionResult <Table\>\>

The updated table.

SetTableAvailable\(Guid\)

Set a table available.

[Authorize(Roles = "Admin, Owner, Staff")] [HttpPut("{tableGuid}/available")] [ProducesResponseType(typeof(Table), 200)] [ProducesResponseType(400)] [ProducesResponseType(401)] [ProducesResponseType(403)] [ProducesResponseType(404)] [ProducesResponseType(500)] public Task<ActionResult<Table>> SetTableAvailable(Guid tableGuid)

Parameters

tableGuid Guid

The unique identifier of the table to update.

Returns

Task < ActionResult <Table\>\>

SetTableCategoryAsAcknowledged\(Guid, SetTableCategoryAsAcknowledgedCommand\)

Set a table serving period as served.

[HttpPut("{tableGuid}/category/acknowledged")] [Authorize(Roles = "Admin, Owner, Staff")] [ProducesResponseType(typeof(Table), 200)] [ProducesResponseType(400)] [ProducesResponseType(401)] [ProducesResponseType(403)] [ProducesResponseType(404)] [ProducesResponseType(500)] public Task<ActionResult<Table>> SetTableCategoryAsAcknowledged(Guid tableGuid, SetTableCategoryAsAcknowledgedCommand command)

Parameters

tableGuid Guid

The unique identifier of the table to update.

command SetTableCategoryAsAcknowledgedCommand

The updates to apply to the table.

Returns

Task < ActionResult <Table\>\>

SetTableCategoryAsServed\(Guid, SetTableCategoryAsServedCommand\)

Set the table category as served.

[HttpPut("{tableGuid}/category/served")] [Authorize(Roles = "Admin, Owner, Staff")] [ProducesResponseType(typeof(Table), 200)] [ProducesResponseType(400)] [ProducesResponseType(401)] [ProducesResponseType(403)] [ProducesResponseType(404)] [ProducesResponseType(500)] public Task<ActionResult<Table>> SetTableCategoryAsServed(Guid tableGuid, SetTableCategoryAsServedCommand command)

Parameters

tableGuid Guid

The unique identifier of the table to update.

command SetTableCategoryAsServedCommand

The updates to apply to the table.

Returns

Task < ActionResult <Table\>\>

SetTableOutOfService\(Guid\)

Set a table out of service.

[Authorize(Roles = "Admin, Owner, Staff")] [HttpPut("{tableGuid}/out-of-service")] [ProducesResponseType(typeof(Table), 200)] [ProducesResponseType(400)] [ProducesResponseType(401)] [ProducesResponseType(403)] [ProducesResponseType(404)] [ProducesResponseType(500)] public Task<ActionResult<Table>> SetTableOutOfService(Guid tableGuid)

Parameters

tableGuid Guid

The unique identifier of the table to update.

Returns

Task < ActionResult <Table\>\>

SetTableServingPeriodAsAcknowledged\(Guid, SetTableServingPeriodAsAcknowledgedCommand\)

Set a table serving period as acknowledged.

[HttpPut("{tableGuid}/serving-period/acknowledged")] [Authorize(Roles = "Admin, Owner, Staff")] [ProducesResponseType(typeof(Table), 200)] [ProducesResponseType(400)] [ProducesResponseType(401)] [ProducesResponseType(403)] [ProducesResponseType(404)] [ProducesResponseType(500)] public Task<ActionResult<Table>> SetTableServingPeriodAsAcknowledged(Guid tableGuid, SetTableServingPeriodAsAcknowledgedCommand command)

Parameters

tableGuid Guid

The unique identifier of the table to update.

command SetTableServingPeriodAsAcknowledgedCommand

The updates to apply to the table.

Returns

Task < ActionResult <Table\>\>

SetTableServingPeriodAsServed\(Guid, SetTableServingPeriodAsServedCommand\)

Set a table serving period as served.

[HttpPut("{tableGuid}/serving-period/served")] [Authorize(Roles = "Admin, Owner, Staff")] [ProducesResponseType(typeof(Table), 200)] [ProducesResponseType(400)] [ProducesResponseType(401)] [ProducesResponseType(403)] [ProducesResponseType(404)] [ProducesResponseType(500)] public Task<ActionResult<Table>> SetTableServingPeriodAsServed(Guid tableGuid, SetTableServingPeriodAsServedCommand command)

Parameters

tableGuid Guid

The unique identifier of the table to update.

command SetTableServingPeriodAsServedCommand

The updates to apply to the table.

Returns

Task < ActionResult <Table\>\>

ToggleReleasingMode\(Guid\)

Toggle the state of a restaurant payment mode.

[HttpPut("{tableGuid}/manual-release/toggle")] [Authorize(Roles = "Admin, Owner")] [ProducesResponseType(typeof(Table), 200)] [ProducesResponseType(400)] [ProducesResponseType(401)] [ProducesResponseType(403)] [ProducesResponseType(404)] [ProducesResponseType(500)] public Task<ActionResult<Table>> ToggleReleasingMode(Guid tableGuid)

Parameters

tableGuid Guid

Guid of the table.

Returns

Task < ActionResult <Table\>\>

The updated table.

UpdateTable\(Guid, UpdateTableCommand\)

Update an existing table.

[HttpPut("{tableGuid}")] [ProducesResponseType(typeof(Table), 200)] [ProducesResponseType(400)] [ProducesResponseType(401)] [ProducesResponseType(403)] [ProducesResponseType(404)] [ProducesResponseType(409)] [ProducesResponseType(500)] public Task<ActionResult<Table>> UpdateTable(Guid tableGuid, UpdateTableCommand command)

Parameters

tableGuid Guid

The unique identifier of the table to update.

command UpdateTableCommand

The updates to apply to the table.

Returns

Task < ActionResult <Table\>\>

Last modified: 21 May 2024