Added new endpoint for variants and temporal fix for reset cache
This commit is contained in:
		| @@ -25,10 +25,22 @@ namespace Core.Inventory.DAL.API.Controllers | ||||
|     [AllowAnonymous] | ||||
|     public class FurnitureVariantController(IFurnitureVariantProvider service) : ControllerBase | ||||
|     { | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Gets all furniture variant records. | ||||
|         /// </summary> | ||||
|         [HttpGet] | ||||
|         [ProducesResponseType(typeof(IEnumerable<FurnitureVariant>), StatusCodes.Status200OK)] | ||||
|         public async Task<IActionResult> GetAllAsync(CancellationToken cancellationToken) | ||||
|         { | ||||
|             var result = await service.GetAllAsync(cancellationToken); | ||||
|             return Ok(result); | ||||
|         } | ||||
|  | ||||
|         /// <summary> | ||||
|         /// Gets all furniture variant records by ModelId. | ||||
|         /// </summary> | ||||
|         [HttpGet] | ||||
|         [Route("ByModel/{modelId}")] | ||||
|         [ProducesResponseType(typeof(IEnumerable<FurnitureVariant>), StatusCodes.Status200OK)] | ||||
|         public async Task<IActionResult> GetAllVariantsByModelIdAsync(string modelId, CancellationToken cancellationToken) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user