From fcea5a6a40369848767780f4d5e35f0b91e50569 Mon Sep 17 00:00:00 2001 From: kishor tripathy Date: Fri, 31 Oct 2025 06:58:31 +0530 Subject: [PATCH] Changed HttpDelete to HttpPost --- microservices/S3Bucket/Controllers/AuthController.cs | 4 ++-- microservices/admin/V1/Controllers/_BaseController.cs | 2 +- microservices/institute/V1/Controllers/ExamsController.cs | 2 +- microservices/user/V2/Controllers/UsersController.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/microservices/S3Bucket/Controllers/AuthController.cs b/microservices/S3Bucket/Controllers/AuthController.cs index 528a448..ba00ff4 100644 --- a/microservices/S3Bucket/Controllers/AuthController.cs +++ b/microservices/S3Bucket/Controllers/AuthController.cs @@ -159,7 +159,7 @@ namespace OnlineAssessment.Controllers } [Route("deleteMyPic")] - [HttpDelete] + [HttpPost] [Authorize(Roles = "Admin,Teacher,Student")] public async Task DeleteMyPic() { @@ -178,7 +178,7 @@ namespace OnlineAssessment.Controllers } [Route("deleteFile/{fileName}")] - [HttpDelete] + [HttpPost] public async Task DeleteFile(string fileName) { var result = await _AWSS3FileService.DeleteFile(fileName); diff --git a/microservices/admin/V1/Controllers/_BaseController.cs b/microservices/admin/V1/Controllers/_BaseController.cs index aadbfbb..f6bf123 100644 --- a/microservices/admin/V1/Controllers/_BaseController.cs +++ b/microservices/admin/V1/Controllers/_BaseController.cs @@ -124,7 +124,7 @@ namespace OnlineAssessment.V1.Controllers /// /// /// - [HttpDelete("{id}")] + [HttpPost("{id}")] public IActionResult Delete(int id) { IActionResult returnResponse = null; diff --git a/microservices/institute/V1/Controllers/ExamsController.cs b/microservices/institute/V1/Controllers/ExamsController.cs index 957d1d1..0b554e7 100644 --- a/microservices/institute/V1/Controllers/ExamsController.cs +++ b/microservices/institute/V1/Controllers/ExamsController.cs @@ -442,7 +442,7 @@ namespace OnlineAssessment.V1.Controllers /// /// /// - [HttpDelete("Exams/{exam_id}/Delete")] + [HttpPost("Exams/{exam_id}/Delete")] [Authorize(Roles = "Admin")] public IActionResult DeleteExamOfTheInstitute(int exam_id) { diff --git a/microservices/user/V2/Controllers/UsersController.cs b/microservices/user/V2/Controllers/UsersController.cs index 8759c88..7bcf618 100644 --- a/microservices/user/V2/Controllers/UsersController.cs +++ b/microservices/user/V2/Controllers/UsersController.cs @@ -265,7 +265,7 @@ namespace OnlineAssessment.V2.Controllers /// /// /// - [HttpDelete("{id}")] + [HttpPost("{id}")] [Authorize(Roles = "SuperAdmin")] public IActionResult Delete(int id) {