api ใบสรุปสมัครสอบ

This commit is contained in:
Kittapath 2023-04-06 22:50:53 +07:00
parent ab86c20b84
commit 9f115e3c72
5 changed files with 106 additions and 15 deletions

View file

@ -1035,6 +1035,33 @@ namespace BMA.EHR.Recurit.Exam.Service.Controllers
}
}
/// <summary>
/// ใบสมัครสอบ
/// </summary>
/// <param name="examId">รหัสรอบสมัคร</param>
/// <param name="positionId">Id ตำแหน่งสมัครสอบ</param>
/// <returns></returns>
/// <response code="200">เมื่อทำการใบสมัครสอบ สำเร็จ</response>
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
[HttpGet("card/{examId:length(36)}/{positionId:length(36)}")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
public async Task<ActionResult<ResponseObject>> GetsAsyncCardCandidate(string examId, string positionId)
{
try
{
var items = await _candidateService.GetsAsyncCardCandidate(examId, positionId);
return Success(items);
}
catch (Exception ex)
{
return Error(ex);
}
}
#endregion
}
}