apidoc tag fixes (#2625)

* apidoc tag fixes
* apidoc typo fixed
This commit is contained in:
Vladimir Dronnikov 2024-03-06 03:41:47 +03:00 committed by GitHub
parent 51cc11ee8c
commit 8175253bae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View file

@ -85,8 +85,8 @@ pub(crate) fn oauth2_id(rs_name: &str) -> Filter<FilterInvalid> {
operation_id = "oauth2_image_get", operation_id = "oauth2_image_get",
responses( responses(
(status = 200, description = "Ok", body=&[u8]), (status = 200, description = "Ok", body=&[u8]),
(status = 403, description = "Authorization refused"), (status = 401, description = "Authorization required"),
(status = 403, description = "Authorization refused"), (status = 403, description = "Not Authorized"),
), ),
security(("token_jwt" = [])), security(("token_jwt" = [])),
tag = "ui", tag = "ui",

View file

@ -1181,7 +1181,7 @@ pub async fn person_id_credential_update_intent_ttl_get(
ApiResponseWithout200, ApiResponseWithout200,
), ),
security(("token_jwt" = [])), security(("token_jwt" = [])),
tag = "v1/person", tag = "v1/person/credential",
)] )]
#[instrument(level = "trace", skip(state, kopid))] #[instrument(level = "trace", skip(state, kopid))]
pub async fn person_id_credential_update_intent_get( pub async fn person_id_credential_update_intent_get(
@ -1587,7 +1587,7 @@ pub async fn service_account_id_ssh_pubkeys_post(
ApiResponseWithout200, ApiResponseWithout200,
), ),
security(("token_jwt" = [])), security(("token_jwt" = [])),
tag = "v1/person/ssh_pubkeys/tag", tag = "v1/person/ssh_pubkeys",
operation_id = "person_id_ssh_pubkeys_tag_get", operation_id = "person_id_ssh_pubkeys_tag_get",
)] )]
pub async fn person_id_ssh_pubkeys_tag_get( pub async fn person_id_ssh_pubkeys_tag_get(
@ -1663,7 +1663,7 @@ pub async fn service_account_id_ssh_pubkeys_tag_get(
DefaultApiResponse, DefaultApiResponse,
), ),
security(("token_jwt" = [])), security(("token_jwt" = [])),
tag = "v1/person/ssh_pubkeys/tag", tag = "v1/person/ssh_pubkeys",
operation_id = "person_id_ssh_pubkeys_tag_delete", operation_id = "person_id_ssh_pubkeys_tag_delete",
)] )]
pub async fn person_id_ssh_pubkeys_tag_delete( pub async fn person_id_ssh_pubkeys_tag_delete(
@ -1699,7 +1699,7 @@ pub async fn person_id_ssh_pubkeys_tag_delete(
DefaultApiResponse, DefaultApiResponse,
), ),
security(("token_jwt" = [])), security(("token_jwt" = [])),
tag = "v1/person", tag = "v1/service_account",
operation_id = "service_account_id_ssh_pubkeys_tag_delete", operation_id = "service_account_id_ssh_pubkeys_tag_delete",
)] )]
pub async fn service_account_id_ssh_pubkeys_tag_delete( pub async fn service_account_id_ssh_pubkeys_tag_delete(
@ -1785,7 +1785,7 @@ pub async fn person_id_radius_post(
DefaultApiResponse, DefaultApiResponse,
), ),
security(("token_jwt" = [])), security(("token_jwt" = [])),
tag = "v1/person", tag = "v1/person/radius",
operation_id = "person_id_radius_delete" operation_id = "person_id_radius_delete"
)] )]
pub async fn person_id_radius_delete( pub async fn person_id_radius_delete(
@ -1848,7 +1848,7 @@ pub async fn account_id_radius_token_get(
ApiResponseWithout200, ApiResponseWithout200,
), ),
security(("token_jwt" = [])), security(("token_jwt" = [])),
tag = "v1/person", tag = "v1/account",
operation_id = "account_id_radius_token_post" operation_id = "account_id_radius_token_post"
)] )]
pub async fn account_id_radius_token_post( pub async fn account_id_radius_token_post(