diff --git a/src/api/handler/repos/info.rs b/src/api/handler/repos/info.rs index bdc01db..a483e4c 100644 --- a/src/api/handler/repos/info.rs +++ b/src/api/handler/repos/info.rs @@ -6,10 +6,7 @@ use actix_web::{web, Responder}; #[utoipa::path( get, tag = "repo", - path = "/api/v1/repo/info", - params( - ("uid" = String, Query, description = "Repo Uid"), - ), + path = "/api/v1/repos/{owner}/{repo}", responses( (status = 200, description = "Success"), (status = 400, description = "Bad Request") diff --git a/src/api/handler/repos/search.rs b/src/api/handler/repos/search.rs index badd20e..286a91a 100644 --- a/src/api/handler/repos/search.rs +++ b/src/api/handler/repos/search.rs @@ -5,8 +5,8 @@ use crate::api::app_write::AppWrite; #[utoipa::path( get, - tag = "search", - path = "/api/v1/search", + tag = "repos", + path = "/api/v1/repos/search", params( ("keywords" = String, Query, description = "Search Keywords"), ("page" = u64, Query, description = "Page"), diff --git a/src/api/handler/user/follower.rs b/src/api/handler/user/follower.rs index 520be6a..560ef3c 100644 --- a/src/api/handler/user/follower.rs +++ b/src/api/handler/user/follower.rs @@ -7,6 +7,7 @@ use crate::metadata::service::MetaService; #[utoipa::path( get, + tag = "user", path = "/api/v1/user/follower", responses( (status = 200, description = "Success", body = Vec), @@ -35,6 +36,7 @@ pub async fn api_user_follower( #[utoipa::path( get, + tag = "user", path = "/api/v1/user/followed", responses( (status = 200, description = "Success", body = Vec), @@ -63,6 +65,7 @@ pub async fn api_user_followed( #[utoipa::path( post, + tag = "user", path = "/api/v1/user/follow", request_body = UserFollow, responses( @@ -99,6 +102,7 @@ pub async fn api_user_follow( #[utoipa::path( delete, + tag = "user", path = "/api/v1/user/unfollow", request_body = UserFollow, responses(