mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
fix api typo (#2657)
This commit is contained in:
parent
e537cef5c3
commit
3e0ec78a61
|
@ -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,
|
||||
|
|
|
@ -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<AccountUnixExtend>,
|
||||
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<ServerState>,
|
||||
|
@ -3062,7 +3062,7 @@ pub(crate) fn route_setup(state: ServerState) -> Router<ServerState> {
|
|||
.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),
|
||||
|
|
Loading…
Reference in a new issue