feat(openapi): show explicitly path requiring bearerAuth
This commit is contained in:
@@ -63,6 +63,7 @@ pub struct VerifyPasswordRequest {
|
||||
(status = 201, description = "Share created", body = crate::application::dtos::share_dto::ShareDto),
|
||||
(status = 400, description = "Bad request")
|
||||
),
|
||||
security(("bearerAuth" = [])),
|
||||
tag = "shares"
|
||||
)]
|
||||
pub async fn create_shared_link(
|
||||
@@ -85,6 +86,7 @@ pub async fn create_shared_link(
|
||||
(status = 200, description = "Share details", body = crate::application::dtos::share_dto::ShareDto),
|
||||
(status = 404, description = "Share not found")
|
||||
),
|
||||
security(("bearerAuth" = [])),
|
||||
tag = "shares"
|
||||
)]
|
||||
pub async fn get_shared_link(
|
||||
@@ -110,6 +112,7 @@ pub async fn get_shared_link(
|
||||
responses(
|
||||
(status = 200, description = "List of shares", body = Vec<crate::application::dtos::share_dto::ShareDto>)
|
||||
),
|
||||
security(("bearerAuth" = [])),
|
||||
tag = "shares"
|
||||
)]
|
||||
pub async fn get_user_shares(
|
||||
@@ -163,6 +166,7 @@ pub async fn get_user_shares(
|
||||
(status = 200, description = "Share updated", body = crate::application::dtos::share_dto::ShareDto),
|
||||
(status = 404, description = "Share not found")
|
||||
),
|
||||
security(("bearerAuth" = [])),
|
||||
tag = "shares"
|
||||
)]
|
||||
pub async fn update_shared_link(
|
||||
@@ -193,6 +197,7 @@ pub async fn update_shared_link(
|
||||
(status = 204, description = "Share deleted"),
|
||||
(status = 404, description = "Share not found")
|
||||
),
|
||||
security(("bearerAuth" = [])),
|
||||
tag = "shares"
|
||||
)]
|
||||
pub async fn delete_shared_link(
|
||||
|
||||
Reference in New Issue
Block a user