Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lazhenyi committed Dec 17, 2024
1 parent 9be78dc commit 14ec587
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/api/handler/repos/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions src/api/handler/repos/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
4 changes: 4 additions & 0 deletions src/api/handler/user/follower.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<UserFollowerOv>),
Expand Down Expand Up @@ -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<UserFollowerOv>),
Expand Down Expand Up @@ -63,6 +65,7 @@ pub async fn api_user_followed(

#[utoipa::path(
post,
tag = "user",
path = "/api/v1/user/follow",
request_body = UserFollow,
responses(
Expand Down Expand Up @@ -99,6 +102,7 @@ pub async fn api_user_follow(

#[utoipa::path(
delete,
tag = "user",
path = "/api/v1/user/unfollow",
request_body = UserFollow,
responses(
Expand Down

0 comments on commit 14ec587

Please sign in to comment.