feat(openapi): show explicitly path requiring bearerAuth

This commit is contained in:
Edouard Vanbelle
2026-05-27 12:43:07 +02:00
parent de1645b6c3
commit dfb21b746d
15 changed files with 124 additions and 5 deletions
@@ -31,6 +31,7 @@ pub struct PaginationQuery {
(status = 400, description = "Bad request"),
(status = 401, description = "Unauthorized")
),
security(("bearerAuth" = [])),
tag = "playlists"
)]
pub async fn create_playlist(
@@ -53,6 +54,7 @@ pub async fn create_playlist(
(status = 401, description = "Unauthorized"),
(status = 404, description = "Playlist not found")
),
security(("bearerAuth" = [])),
tag = "playlists"
)]
pub async fn get_playlist(
@@ -73,6 +75,7 @@ pub async fn get_playlist(
(status = 200, description = "List of playlists"),
(status = 401, description = "Unauthorized")
),
security(("bearerAuth" = [])),
tag = "playlists"
)]
pub async fn list_playlists(
@@ -101,6 +104,7 @@ pub struct IncludeSharedQuery {
(status = 401, description = "Unauthorized"),
(status = 404, description = "Playlist not found")
),
security(("bearerAuth" = [])),
tag = "playlists"
)]
pub async fn update_playlist(
@@ -127,6 +131,7 @@ pub async fn update_playlist(
(status = 401, description = "Unauthorized"),
(status = 404, description = "Playlist not found")
),
security(("bearerAuth" = [])),
tag = "playlists"
)]
pub async fn delete_playlist(
@@ -152,6 +157,7 @@ pub async fn delete_playlist(
(status = 401, description = "Unauthorized"),
(status = 404, description = "Playlist not found")
),
security(("bearerAuth" = [])),
tag = "playlists"
)]
pub async fn add_tracks(
@@ -181,6 +187,7 @@ pub async fn add_tracks(
(status = 401, description = "Unauthorized"),
(status = 404, description = "Playlist or track not found")
),
security(("bearerAuth" = [])),
tag = "playlists"
)]
pub async fn remove_track(
@@ -206,6 +213,7 @@ pub async fn remove_track(
(status = 401, description = "Unauthorized"),
(status = 404, description = "Playlist not found")
),
security(("bearerAuth" = [])),
tag = "playlists"
)]
pub async fn reorder_tracks(
@@ -232,6 +240,7 @@ pub async fn reorder_tracks(
(status = 401, description = "Unauthorized"),
(status = 404, description = "Playlist not found")
),
security(("bearerAuth" = [])),
tag = "playlists"
)]
pub async fn list_playlist_tracks(
@@ -257,6 +266,7 @@ pub async fn list_playlist_tracks(
(status = 401, description = "Unauthorized"),
(status = 404, description = "Playlist not found")
),
security(("bearerAuth" = [])),
tag = "playlists"
)]
pub async fn share_playlist(
@@ -286,6 +296,7 @@ pub async fn share_playlist(
(status = 401, description = "Unauthorized"),
(status = 404, description = "Playlist or share not found")
),
security(("bearerAuth" = [])),
tag = "playlists"
)]
pub async fn remove_share(
@@ -311,6 +322,7 @@ pub async fn remove_share(
(status = 401, description = "Unauthorized"),
(status = 404, description = "Playlist not found")
),
security(("bearerAuth" = [])),
tag = "playlists"
)]
pub async fn get_playlist_shares(
@@ -336,6 +348,7 @@ pub async fn get_playlist_shares(
(status = 401, description = "Unauthorized"),
(status = 404, description = "File not found")
),
security(("bearerAuth" = [])),
tag = "playlists"
)]
pub async fn get_audio_metadata(