Skip to content

Commit

Permalink
fix(shield-axum): change OpenAPI operation IDs (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielleHuisman authored Jan 18, 2025
1 parent eba24bb commit 33e018e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/integrations/shield-axum/src/routes/sign_in.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use crate::{
utoipa::path(
post,
path = "/sign-in/{providerId}/{subproviderId}",
operation_id = "signIn",
description = "Sign in to an account with the specified authentication provider.",
params(
AuthPathParams,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use crate::{
utoipa::path(
post,
path = "/sign-in/callback/{providerId}/{subproviderId}",
operation_id = "signInCallback",
description = "Callback after signing in with authentication provider.",
params(
AuthPathParams,
Expand Down
1 change: 1 addition & 0 deletions packages/integrations/shield-axum/src/routes/sign_out.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use crate::{
utoipa::path(
post,
path = "/sign-out",
operation_id = "signOut",
description = "Sign out of the current account.",
responses(
(status = 201, description = "Successfully signed out."),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use crate::{error::RouteError, extract::ExtractShield};
utoipa::path(
get,
path = "/subproviders",
operation_id = "getSubproviders",
description = "Get a list of authentication subproviders.",
responses(
(status = 200, description = "List of authentication subproviders.", body = Vec<SubproviderVisualisation>),
Expand Down
1 change: 1 addition & 0 deletions packages/integrations/shield-axum/src/routes/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ impl UserBody {
utoipa::path(
get,
path = "/user",
operation_id = "getUser",
description = "Get the current user account.",
responses(
(status = 200, description = "Current user account.", body = UserBody),
Expand Down

0 comments on commit 33e018e

Please sign in to comment.