From 51d26ffa9d148436d58a92009816af10ef719a31 Mon Sep 17 00:00:00 2001 From: Natalia Date: Fri, 10 Mar 2023 18:35:46 +0300 Subject: [PATCH] sso settings: added api descriptions --- web/ASC.Web.Api/Api/Settings/SsoController.cs | 46 +++++++++++-------- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/web/ASC.Web.Api/Api/Settings/SsoController.cs b/web/ASC.Web.Api/Api/Settings/SsoController.cs index 5dd6edb314..7b541b491f 100644 --- a/web/ASC.Web.Api/Api/Settings/SsoController.cs +++ b/web/ASC.Web.Api/Api/Settings/SsoController.cs @@ -53,8 +53,8 @@ public class SsoController : BaseSettingsController _coreBaseSettings = coreBaseSettings; _userManager = userManager; _messageService = messageService; - } - + } + /// /// Returns the current portal SSO settings. /// @@ -62,7 +62,9 @@ public class SsoController : BaseSettingsController /// Get the SSO settings /// /// SSO - /// SSO settings + /// SSO settings + /// api/2.0/settings/ssov2 + /// GET [HttpGet("ssov2")] public SsoSettingsV2 GetSsoSettingsV2() { @@ -76,8 +78,8 @@ public class SsoController : BaseSettingsController } return settings; - } - + } + /// /// Returns the default portal SSO settings. /// @@ -85,22 +87,26 @@ public class SsoController : BaseSettingsController /// Get the default SSO settings /// /// SSO - /// Default SSO settings + /// Default SSO settings + /// api/2.0/settings/ssov2/default + /// GET [HttpGet("ssov2/default")] public SsoSettingsV2 GetDefaultSsoSettingsV2() { CheckSsoPermissions(); return _settingsManager.GetDefault(); - } - + } + /// - /// Returns the constants of the SSO settings. + /// Returns the SSO settings constants. /// /// - /// Get the constants of the SSO settings + /// Get the SSO settings constants /// /// SSO - /// Constants of the SSO settings + /// The SSO settings constants + /// api/2.0/settings/ssov2/constants + /// GET [HttpGet("ssov2/constants")] public object GetSsoSettingsV2Constants() { @@ -113,8 +119,8 @@ public class SsoController : BaseSettingsController SsoSpCertificateActionType = new SsoSpCertificateActionType(), SsoIdpCertificateActionType = new SsoIdpCertificateActionType() }; - } - + } + /// /// Saves the SSO settings for the current portal. /// @@ -122,8 +128,10 @@ public class SsoController : BaseSettingsController /// Save the SSO settings /// /// SSO - /// Serialized SSO settings - /// SSO settings + /// Serialized SSO settings + /// SSO settings + /// api/2.0/settings/ssov2 + /// POST [HttpPost("ssov2")] public SsoSettingsV2 SaveSsoSettingsV2(SsoSettingsRequestsDto model) { @@ -195,8 +203,8 @@ public class SsoController : BaseSettingsController _messageService.Send(messageAction); return settings; - } - + } + /// /// Resets the SSO settings of the current portal. /// @@ -204,7 +212,9 @@ public class SsoController : BaseSettingsController /// Reset the SSO settings /// /// SSO - /// Default SSO settings + /// Default SSO settings + /// api/2.0/settings/ssov2 + /// DELETE [HttpDelete("ssov2")] public SsoSettingsV2 ResetSsoSettingsV2() {