Back to .net8.0 api/v4/InfinityQS ApiExplorerSettings Wafer Counter Color Sorting
22 lines
958 B
C#
22 lines
958 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using OI.Metrology.Shared.Models.Stateless;
|
|
|
|
namespace OI.Metrology.Server.ApiControllers;
|
|
|
|
[Route("api/v1/WaferCounter")]
|
|
public class WaferCounterController : Controller, IWaferCounterController<IActionResult>
|
|
{
|
|
|
|
private readonly IWaferCounterRepository _WaferCounterRepository;
|
|
|
|
public WaferCounterController(IWaferCounterRepository waferCounterRepository) =>
|
|
_WaferCounterRepository = waferCounterRepository;
|
|
|
|
[HttpGet("{waferSize}/last-quantity-and-slot-map")]
|
|
public IActionResult GetLastQuantityAndSlotMap(string area, string waferSize) =>
|
|
Json(_WaferCounterRepository.GetLastQuantityAndSlotMap(area, waferSize));
|
|
|
|
[HttpGet("{waferSize}/last-quantity-and-slot-map-with-text")]
|
|
public IActionResult GetLastQuantityAndSlotMapWithText(string area, string waferSize, string text) =>
|
|
Json(_WaferCounterRepository.GetLastQuantityAndSlotMapWithText(area, waferSize, text));
|
|
} |