diff --git a/server/core/src/https/apidocs/mod.rs b/server/core/src/https/apidocs/mod.rs index f4b6248cf..8301e366b 100644 --- a/server/core/src/https/apidocs/mod.rs +++ b/server/core/src/https/apidocs/mod.rs @@ -117,7 +117,7 @@ impl Modify for SecurityAddon { super::v1::account_id_ssh_pubkeys_get, super::v1::account_id_radius_token_post, - super::v1::service_account_id_unix_post, + super::v1::person_id_unix_post, super::v1::person_id_unix_credential_put, super::v1::person_id_unix_credential_delete, super::v1::person_identify_user_post, @@ -140,6 +140,7 @@ impl Modify for SecurityAddon { super::v1::service_account_id_credential_status_get, super::v1::service_account_id_ssh_pubkeys_tag_get, super::v1::service_account_id_ssh_pubkeys_tag_delete, + super::v1::service_account_id_unix_post, super::v1::account_id_unix_post, super::v1::account_id_unix_auth_post, super::v1::account_id_unix_token, diff --git a/server/core/src/https/v1.rs b/server/core/src/https/v1.rs index 7720aa6c5..a0621bb12 100644 --- a/server/core/src/https/v1.rs +++ b/server/core/src/https/v1.rs @@ -195,7 +195,7 @@ pub async fn whoami_uat( } #[utoipa::path( - post, + get, path = "/v1/logout", responses( DefaultApiResponse, @@ -1415,7 +1415,7 @@ pub async fn service_account_id_credential_status_get( } #[utoipa::path( - delete, + get, path = "/v1/person/{id}/_credential/_status", responses( (status=200), // TODO: define response @@ -1877,7 +1877,7 @@ async fn person_id_radius_handler( #[utoipa::path( post, path = "/v1/person/{id}/_unix", - request_body=Jaon, + request_body=AccountUnixExtend, responses( DefaultApiResponse, ), @@ -2022,7 +2022,7 @@ pub async fn account_id_unix_auth_post( } #[utoipa::path( - post, + put, path = "/v1/person/{id}/_unix/_credential", request_body = SingleStringRequest, responses( @@ -2304,7 +2304,7 @@ pub async fn group_id_attr_put( } #[utoipa::path( - put, + post, path = "/v1/group/{id}/_unix", request_body = GroupUnixExtend, responses( @@ -2312,7 +2312,7 @@ pub async fn group_id_attr_put( ), security(("token_jwt" = [])), tag = "v1/group/unix", - operation_id = "group_id_unix_put", + operation_id = "group_id_unix_post", )] pub async fn group_id_unix_post( State(state): State, @@ -3062,7 +3062,7 @@ pub(crate) fn route_setup(state: ServerState) -> Router { .post(person_id_radius_post) .delete(person_id_radius_delete), ) - .route("/v1/person/:id/_unix", post(service_account_id_unix_post)) + .route("/v1/person/:id/_unix", post(person_id_unix_post)) .route( "/v1/person/:id/_unix/_credential", put(person_id_unix_credential_put).delete(person_id_unix_credential_delete),