Repository: sebadob/rauthy (language: rust)

Issue:
Missing Providers Link API Documentation in Swagger
I just noticed that the `POST` to the `/providers/link` endpoint isn't documented in Swagger:

![image](https://github.com/user-attachments/assets/92905ac7-8be2-4115-bed1-f42363155f1a)

This is for version v0.25.0



Discussion / hints:

Fix patch:
diff --git a/src/api/src/auth_providers.rs b/src/api/src/auth_providers.rs
index bec50f7f5..a1c9020d9 100644
--- a/src/api/src/auth_providers.rs
+++ b/src/api/src/auth_providers.rs
@@ -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")]
@@ -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",
diff --git a/src/api/src/openapi.rs b/src/api/src/openapi.rs
index 623c8c646..30971a20f 100644
--- a/src/api/src/openapi.rs
+++ b/src/api/src/openapi.rs
@@ -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,


Test patch: