24 lines
777 B
C#
24 lines
777 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace OI.Metrology.Server.ApiControllers;
|
|
|
|
using OI.Metrology.Shared.Models.Stateless;
|
|
|
|
[Route("api/[controller]")]
|
|
public class OpenInsightV1Controller : Controller, IOpenInsightV1Controller<IActionResult>
|
|
{
|
|
|
|
private readonly IOpenInsightV1Repository _OpenInsightRepository;
|
|
|
|
public OpenInsightV1Controller(IOpenInsightV1Repository openInsightRepository) =>
|
|
_OpenInsightRepository = openInsightRepository;
|
|
|
|
[HttpGet]
|
|
[Route("{rds}/tencor-run")]
|
|
public IActionResult GetTencorRun(string rds, string? insert_date, string? recipe)
|
|
{
|
|
string result = _OpenInsightRepository.GetTencorRun(rds, insert_date, recipe);
|
|
return Content(result, "application/json", System.Text.Encoding.UTF8);
|
|
}
|
|
|
|
} |