Added new endpoint for variants GetAll

This commit is contained in:
2025-06-27 18:11:21 -06:00
parent 3e8100e1c5
commit 15d0d24313
4 changed files with 35 additions and 7 deletions

View File

@@ -22,16 +22,16 @@ namespace Core.Inventory.BFF.API.Controllers
/// </summary>
[HttpGet("GetAll")]
[ProducesResponseType(typeof(IEnumerable<FurnitureBase>), StatusCodes.Status200OK)]
public async Task<IActionResult> GetAllAsync(CancellationToken cancellationToken)
public async Task<IActionResult> GetAllBaseAsync(CancellationToken cancellationToken)
{
try
{
logger.LogInformation($"{nameof(GetAllAsync)} - Request received.");
return await Handle(() => inventoryClient.GetAllAsync(TrackingId.ToString(), cancellationToken));
logger.LogInformation($"{nameof(GetAllBaseAsync)} - Request received.");
return await Handle(() => inventoryClient.GetAllBaseAsync(TrackingId.ToString(), cancellationToken));
}
catch (Exception ex)
{
logger.LogError(ex, $"{nameof(GetAllAsync)} - An error occurred.");
logger.LogError(ex, $"{nameof(GetAllBaseAsync)} - An error occurred.");
throw;
}
}