Skip to content

Commit

Permalink
Merge pull request #570 from sebadob/569-provider-link-doc
Browse files Browse the repository at this point in the history
Missing `/providers/{id}/link` doc
  • Loading branch information
sebadob authored Sep 25, 2024
2 parents 32281f1 + c1e5017 commit b36a796
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/api/src/auth_providers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ pub async fn delete_provider_link(
path = "/providers/minimal",
tag = "providers",
responses(
(status = 200, description = "OK", body = ProviderResponse),
(status = 200, description = "OK"),
),
)]
#[get("/providers/minimal")]
Expand Down Expand Up @@ -340,12 +340,7 @@ pub async fn get_provider_delete_safe(
}
}

/// PUT upload an image / icon for an auth provider
///
/// The image can only be max 10MB in size and will be minified automatically.
///
/// **Permissions**
/// - `rauthy_admin`
/// GET the uploaded image an auth provider
#[utoipa::path(
get,
path = "/providers/{id}/img",
Expand Down
1 change: 1 addition & 0 deletions src/api/src/openapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ use utoipa::{openapi, OpenApi};
auth_providers::post_provider_lookup,
auth_providers::post_provider_login,
auth_providers::post_provider_callback,
auth_providers::post_provider_link,
auth_providers::delete_provider_link,
auth_providers::get_providers_minimal,
auth_providers::put_provider,
Expand Down

0 comments on commit b36a796

Please sign in to comment.