fix api typo (#2657)

This commit is contained in:
Vladimir Dronnikov 2024-03-18 12:29:28 +03:00 committed by GitHub
parent e537cef5c3
commit 3e0ec78a61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 8 deletions

View file

@ -117,7 +117,7 @@ impl Modify for SecurityAddon {
super::v1::account_id_ssh_pubkeys_get, super::v1::account_id_ssh_pubkeys_get,
super::v1::account_id_radius_token_post, 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_put,
super::v1::person_id_unix_credential_delete, super::v1::person_id_unix_credential_delete,
super::v1::person_identify_user_post, 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_credential_status_get,
super::v1::service_account_id_ssh_pubkeys_tag_get, super::v1::service_account_id_ssh_pubkeys_tag_get,
super::v1::service_account_id_ssh_pubkeys_tag_delete, 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_post,
super::v1::account_id_unix_auth_post, super::v1::account_id_unix_auth_post,
super::v1::account_id_unix_token, super::v1::account_id_unix_token,

View file

@ -195,7 +195,7 @@ pub async fn whoami_uat(
} }
#[utoipa::path( #[utoipa::path(
post, get,
path = "/v1/logout", path = "/v1/logout",
responses( responses(
DefaultApiResponse, DefaultApiResponse,
@ -1415,7 +1415,7 @@ pub async fn service_account_id_credential_status_get(
} }
#[utoipa::path( #[utoipa::path(
delete, get,
path = "/v1/person/{id}/_credential/_status", path = "/v1/person/{id}/_credential/_status",
responses( responses(
(status=200), // TODO: define response (status=200), // TODO: define response
@ -1877,7 +1877,7 @@ async fn person_id_radius_handler(
#[utoipa::path( #[utoipa::path(
post, post,
path = "/v1/person/{id}/_unix", path = "/v1/person/{id}/_unix",
request_body=Jaon<AccountUnixExtend>, request_body=AccountUnixExtend,
responses( responses(
DefaultApiResponse, DefaultApiResponse,
), ),
@ -2022,7 +2022,7 @@ pub async fn account_id_unix_auth_post(
} }
#[utoipa::path( #[utoipa::path(
post, put,
path = "/v1/person/{id}/_unix/_credential", path = "/v1/person/{id}/_unix/_credential",
request_body = SingleStringRequest, request_body = SingleStringRequest,
responses( responses(
@ -2304,7 +2304,7 @@ pub async fn group_id_attr_put(
} }
#[utoipa::path( #[utoipa::path(
put, post,
path = "/v1/group/{id}/_unix", path = "/v1/group/{id}/_unix",
request_body = GroupUnixExtend, request_body = GroupUnixExtend,
responses( responses(
@ -2312,7 +2312,7 @@ pub async fn group_id_attr_put(
), ),
security(("token_jwt" = [])), security(("token_jwt" = [])),
tag = "v1/group/unix", tag = "v1/group/unix",
operation_id = "group_id_unix_put", operation_id = "group_id_unix_post",
)] )]
pub async fn group_id_unix_post( pub async fn group_id_unix_post(
State(state): State<ServerState>, State(state): State<ServerState>,
@ -3062,7 +3062,7 @@ pub(crate) fn route_setup(state: ServerState) -> Router<ServerState> {
.post(person_id_radius_post) .post(person_id_radius_post)
.delete(person_id_radius_delete), .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( .route(
"/v1/person/:id/_unix/_credential", "/v1/person/:id/_unix/_credential",
put(person_id_unix_credential_put).delete(person_id_unix_credential_delete), put(person_id_unix_credential_put).delete(person_id_unix_credential_delete),