@@ -21,6 +21,7 @@ use secrecy::{ExposeSecret, SecretString};
2121#[ utoipa:: path(
2222 get,
2323 path = "/api/v1/crates/{name}/owners" ,
24+ params( CratePath ) ,
2425 tag = "owners" ,
2526 responses( ( status = 200 , description = "Successful Response" ) ) ,
2627) ]
@@ -43,6 +44,7 @@ pub async fn list_owners(state: AppState, path: CratePath) -> AppResult<ErasedJs
4344#[ utoipa:: path(
4445 get,
4546 path = "/api/v1/crates/{name}/owner_team" ,
47+ params( CratePath ) ,
4648 tag = "owners" ,
4749 responses( ( status = 200 , description = "Successful Response" ) ) ,
4850) ]
@@ -63,6 +65,7 @@ pub async fn get_team_owners(state: AppState, path: CratePath) -> AppResult<Eras
6365#[ utoipa:: path(
6466 get,
6567 path = "/api/v1/crates/{name}/owner_user" ,
68+ params( CratePath ) ,
6669 tag = "owners" ,
6770 responses( ( status = 200 , description = "Successful Response" ) ) ,
6871) ]
@@ -84,6 +87,7 @@ pub async fn get_user_owners(state: AppState, path: CratePath) -> AppResult<Eras
8487#[ utoipa:: path(
8588 put,
8689 path = "/api/v1/crates/{name}/owners" ,
90+ params( CratePath ) ,
8791 tag = "owners" ,
8892 responses( ( status = 200 , description = "Successful Response" ) ) ,
8993) ]
@@ -100,6 +104,7 @@ pub async fn add_owners(
100104#[ utoipa:: path(
101105 delete,
102106 path = "/api/v1/crates/{name}/owners" ,
107+ params( CratePath ) ,
103108 tag = "owners" ,
104109 responses( ( status = 200 , description = "Successful Response" ) ) ,
105110) ]
0 commit comments