api ลา 04,05 และ 11

This commit is contained in:
Suphonchai Phoonsawat 2023-11-29 18:45:11 +07:00
parent cffb53c1f5
commit e130ce00d7
7 changed files with 198 additions and 4 deletions

View file

@ -9,7 +9,7 @@ using System.Security.Claims;
namespace BMA.EHR.Leave.Service.Controllers
{
[Route("api/v{version:apiVersion}/leave-types")]
[Route("api/v{version:apiVersion}/leave")]
[ApiVersion("1.0")]
[ApiController]
[Produces("application/json")]
@ -71,14 +71,14 @@ namespace BMA.EHR.Leave.Service.Controllers
#region " Methods "
/// <summary>
/// List รายการประเภทการลา
/// LV2_011 - รายการประเภทการลา (ADMIN)
/// </summary>
/// <returns>
/// </returns>
/// <response code="200">เมื่อทำรายการสำเร็จ</response>
/// <response code="401">ไม่ได้ Login เข้าระบบ</response>
/// <response code="500">เมื่อเกิดข้อผิดพลาดในการทำงาน</response>
[HttpPost]
[HttpGet("type")]
[ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]