Add access level descriptions to API responses across multiple controllers
- Updated event controller to specify public and admin access levels in response descriptions. - Modified testimonials controller to indicate public access for list and detail responses. - Enhanced mentors controller with admin access labels for various responses. - Adjusted gacha claims and items controllers to reflect admin access in response descriptions. - Updated hackathon controller to clarify public and admin access levels in response messages. - Revised authentication controller to specify public access for login and registration responses. - Enhanced admin teams controller with admin access labels for team-related responses. - Updated users controller to clarify admin and user access levels in response descriptions.
This commit is contained in:
@@ -15,7 +15,7 @@ use imphnen_iam::{PermissionsEnum, permissions_guard};
|
||||
),
|
||||
params(("id" = String, Path, description = "Gacha Roll ID")),
|
||||
responses(
|
||||
(status = 200, description = "Get Gacha Roll by ID", body = ResponseSuccessDto<GachaRollItemDto>)
|
||||
(status = 200, description = "[ADMIN] Get Gacha Roll by ID", body = ResponseSuccessDto<GachaRollItemDto>)
|
||||
),
|
||||
tag = "Gacha"
|
||||
)]
|
||||
@@ -44,7 +44,7 @@ pub async fn get_detail_gacha_roll(
|
||||
),
|
||||
request_body = GachaRollRequestDto,
|
||||
responses(
|
||||
(status = 201, description = "Create new gacha roll", body = MessageResponseDto)
|
||||
(status = 201, description = "[ADMIN] Create new gacha roll", body = MessageResponseDto)
|
||||
),
|
||||
tag = "Gacha"
|
||||
)]
|
||||
@@ -72,7 +72,7 @@ pub async fn post_create_gacha_roll(
|
||||
("Bearer" = [])
|
||||
),
|
||||
responses(
|
||||
(status = 200, description = "Execute and get 1 gacha result", body = ResponseSuccessDto<GachaRollItemDto>)
|
||||
(status = 200, description = "[ADMIN] Execute and get 1 gacha result", body = ResponseSuccessDto<GachaRollItemDto>)
|
||||
),
|
||||
tag = "Gacha"
|
||||
)]
|
||||
@@ -100,7 +100,7 @@ pub async fn post_execute_gacha_roll(
|
||||
),
|
||||
params(("id" = String, Path, description = "Gacha Roll ID")),
|
||||
responses(
|
||||
(status = 200, description = "Delete Gacha Roll (soft delete)", body = MessageResponseDto)
|
||||
(status = 200, description = "[ADMIN] Delete Gacha Roll (soft delete)", body = MessageResponseDto)
|
||||
),
|
||||
tag = "Gacha"
|
||||
)]
|
||||
|
||||
Reference in New Issue
Block a user