@@ -21,11 +21,10 @@ use secrecy::{ExposeSecret, SecretString};
21
21
#[ utoipa:: path(
22
22
get,
23
23
path = "/api/v1/crates/{name}/owners" ,
24
- operation_id = "list_owners" ,
25
24
tag = "owners" ,
26
25
responses( ( status = 200 , description = "Successful Response" ) ) ,
27
26
) ]
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 > {
29
28
let mut conn = state. db_read ( ) . await ?;
30
29
31
30
let krate: Crate = Crate :: by_name ( & crate_name)
@@ -48,11 +47,13 @@ pub async fn owners(state: AppState, Path(crate_name): Path<String>) -> AppResul
48
47
#[ utoipa:: path(
49
48
get,
50
49
path = "/api/v1/crates/{name}/owner_team" ,
51
- operation_id = "get_team_owners" ,
52
50
tag = "owners" ,
53
51
responses( ( status = 200 , description = "Successful Response" ) ) ,
54
52
) ]
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 > {
56
57
let mut conn = state. db_read ( ) . await ?;
57
58
let krate: Crate = Crate :: by_name ( & crate_name)
58
59
. first ( & mut conn)
@@ -73,11 +74,13 @@ pub async fn owner_team(state: AppState, Path(crate_name): Path<String>) -> AppR
73
74
#[ utoipa:: path(
74
75
get,
75
76
path = "/api/v1/crates/{name}/owner_user" ,
76
- operation_id = "get_user_owners" ,
77
77
tag = "owners" ,
78
78
responses( ( status = 200 , description = "Successful Response" ) ) ,
79
79
) ]
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 > {
81
84
let mut conn = state. db_read ( ) . await ?;
82
85
83
86
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
99
102
#[ utoipa:: path(
100
103
put,
101
104
path = "/api/v1/crates/{name}/owners" ,
102
- operation_id = "add_owners" ,
103
105
tag = "owners" ,
104
106
responses( ( status = 200 , description = "Successful Response" ) ) ,
105
107
) ]
@@ -116,7 +118,6 @@ pub async fn add_owners(
116
118
#[ utoipa:: path(
117
119
delete,
118
120
path = "/api/v1/crates/{name}/owners" ,
119
- operation_id = "delete_owners" ,
120
121
tag = "owners" ,
121
122
responses( ( status = 200 , description = "Successful Response" ) ) ,
122
123
) ]
0 commit comments