@@ -21,11 +21,10 @@ use secrecy::{ExposeSecret, SecretString};
2121#[ utoipa:: path(
2222 get,
2323 path = "/api/v1/crates/{name}/owners" ,
24- operation_id = "list_owners" ,
2524 tag = "owners" ,
2625 responses( ( status = 200 , description = "Successful Response" ) ) ,
2726) ]
28- pub async fn owners ( state : AppState , Path ( crate_name) : Path < String > ) -> AppResult < ErasedJson > {
27+ pub async fn list_owners ( state : AppState , Path ( crate_name) : Path < String > ) -> AppResult < ErasedJson > {
2928 let mut conn = state. db_read ( ) . await ?;
3029
3130 let krate: Crate = Crate :: by_name ( & crate_name)
@@ -48,11 +47,13 @@ pub async fn owners(state: AppState, Path(crate_name): Path<String>) -> AppResul
4847#[ utoipa:: path(
4948 get,
5049 path = "/api/v1/crates/{name}/owner_team" ,
51- operation_id = "get_team_owners" ,
5250 tag = "owners" ,
5351 responses( ( status = 200 , description = "Successful Response" ) ) ,
5452) ]
55- pub async fn owner_team ( state : AppState , Path ( crate_name) : Path < String > ) -> AppResult < ErasedJson > {
53+ pub async fn get_team_owners (
54+ state : AppState ,
55+ Path ( crate_name) : Path < String > ,
56+ ) -> AppResult < ErasedJson > {
5657 let mut conn = state. db_read ( ) . await ?;
5758 let krate: Crate = Crate :: by_name ( & crate_name)
5859 . first ( & mut conn)
@@ -73,11 +74,13 @@ pub async fn owner_team(state: AppState, Path(crate_name): Path<String>) -> AppR
7374#[ utoipa:: path(
7475 get,
7576 path = "/api/v1/crates/{name}/owner_user" ,
76- operation_id = "get_user_owners" ,
7777 tag = "owners" ,
7878 responses( ( status = 200 , description = "Successful Response" ) ) ,
7979) ]
80- pub async fn owner_user ( state : AppState , Path ( crate_name) : Path < String > ) -> AppResult < ErasedJson > {
80+ pub async fn get_user_owners (
81+ state : AppState ,
82+ Path ( crate_name) : Path < String > ,
83+ ) -> AppResult < ErasedJson > {
8184 let mut conn = state. db_read ( ) . await ?;
8285
8386 let krate: Crate = Crate :: by_name ( & crate_name)
@@ -99,7 +102,6 @@ pub async fn owner_user(state: AppState, Path(crate_name): Path<String>) -> AppR
99102#[ utoipa:: path(
100103 put,
101104 path = "/api/v1/crates/{name}/owners" ,
102- operation_id = "add_owners" ,
103105 tag = "owners" ,
104106 responses( ( status = 200 , description = "Successful Response" ) ) ,
105107) ]
@@ -116,7 +118,6 @@ pub async fn add_owners(
116118#[ utoipa:: path(
117119 delete,
118120 path = "/api/v1/crates/{name}/owners" ,
119- operation_id = "delete_owners" ,
120121 tag = "owners" ,
121122 responses( ( status = 200 , description = "Successful Response" ) ) ,
122123) ]
0 commit comments