diff --git a/.vs/BMA.EHR.Recruit.Service/DesignTimeBuild/.dtbcache.v2 b/.vs/BMA.EHR.Recruit.Service/DesignTimeBuild/.dtbcache.v2
index d1f6934..db3dd3c 100644
Binary files a/.vs/BMA.EHR.Recruit.Service/DesignTimeBuild/.dtbcache.v2 and b/.vs/BMA.EHR.Recruit.Service/DesignTimeBuild/.dtbcache.v2 differ
diff --git a/.vs/BMA.EHR.Recruit.Service/v17/.futdcache.v2 b/.vs/BMA.EHR.Recruit.Service/v17/.futdcache.v2
index 08ebaf2..fc5e108 100644
Binary files a/.vs/BMA.EHR.Recruit.Service/v17/.futdcache.v2 and b/.vs/BMA.EHR.Recruit.Service/v17/.futdcache.v2 differ
diff --git a/.vs/BMA.EHR.Recruit.Service/v17/.suo b/.vs/BMA.EHR.Recruit.Service/v17/.suo
index d81f597..31ef6f7 100644
Binary files a/.vs/BMA.EHR.Recruit.Service/v17/.suo and b/.vs/BMA.EHR.Recruit.Service/v17/.suo differ
diff --git a/Controllers/RecruitController.cs b/Controllers/RecruitController.cs
index 1792978..6d9a613 100644
--- a/Controllers/RecruitController.cs
+++ b/Controllers/RecruitController.cs
@@ -138,7 +138,7 @@ namespace BMA.EHR.Recruit.Service.Controllers
/// ตัวอย่างในการเขียน api เพื่อทำการ upload file
///
///
- /// เมื่อทำการอ่านข้อมูลจาก Relational Database สำเร็จ
+ /// เมื่อทำการ upload สำเร็จ
/// ค่าตัวแปรที่ส่งมาไม่ถูกต้อง
/// ไม่ได้ Login เข้าระบบ
/// เมื่อเกิดข้อผิดพลาดในการทำงาน
@@ -168,7 +168,20 @@ namespace BMA.EHR.Recruit.Service.Controllers
}
}
+ ///
+ /// ตัวอย่างในการเขียน api เพื่อทำการ delete file
+ ///
+ /// รหัสไฟล์ในฐานข้อมูล
+ ///
+ /// เมื่อทำการ delete file สำเร็จ
+ /// ค่าตัวแปรที่ส่งมาไม่ถูกต้อง
+ /// ไม่ได้ Login เข้าระบบ
+ /// เมื่อเกิดข้อผิดพลาดในการทำงาน
[HttpGet("delete/{id:length(36)}")]
+ [ProducesResponseType(StatusCodes.Status200OK)]
+ [ProducesResponseType(StatusCodes.Status400BadRequest)]
+ [ProducesResponseType(StatusCodes.Status401Unauthorized)]
+ [ProducesResponseType(StatusCodes.Status500InternalServerError)]
[AllowAnonymous]
public async Task> DeleteFile(Guid id)
{
@@ -184,7 +197,20 @@ namespace BMA.EHR.Recruit.Service.Controllers
}
}
+ ///
+ /// ตัวอย่างในการเขียน api เพื่อทำการ download file
+ ///
+ /// รหัสไฟล์ในฐานข้อมูล
+ ///
+ /// เมื่อทำการ download file สำเร็จ
+ /// ค่าตัวแปรที่ส่งมาไม่ถูกต้อง
+ /// ไม่ได้ Login เข้าระบบ
+ /// เมื่อเกิดข้อผิดพลาดในการทำงาน
[HttpGet("download/{id:length(36)}")]
+ [ProducesResponseType(StatusCodes.Status200OK)]
+ [ProducesResponseType(StatusCodes.Status400BadRequest)]
+ [ProducesResponseType(StatusCodes.Status401Unauthorized)]
+ [ProducesResponseType(StatusCodes.Status500InternalServerError)]
[AllowAnonymous]
public async Task> DownloadFile(Guid id)
{