From 0ef5e6acece3bd8cb8c842036e54c5813c856f92 Mon Sep 17 00:00:00 2001 From: jonkjetiloye <40996230+jonkjetiloye@users.noreply.github.com> Date: Mon, 9 Dec 2024 15:20:09 +0100 Subject: [PATCH] Fix response datatypes for Apps InstanceDelegation API (#153) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jon Kjetil Øye --- .../ResourceOwnerAPI/AppsInstanceDelegationController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/Altinn.AccessManagement/src/Altinn.AccessManagement/Controllers/ResourceOwnerAPI/AppsInstanceDelegationController.cs b/src/apps/Altinn.AccessManagement/src/Altinn.AccessManagement/Controllers/ResourceOwnerAPI/AppsInstanceDelegationController.cs index ac0cf84c..4df80f28 100644 --- a/src/apps/Altinn.AccessManagement/src/Altinn.AccessManagement/Controllers/ResourceOwnerAPI/AppsInstanceDelegationController.cs +++ b/src/apps/Altinn.AccessManagement/src/Altinn.AccessManagement/Controllers/ResourceOwnerAPI/AppsInstanceDelegationController.cs @@ -49,7 +49,7 @@ public AppsInstanceDelegationController( [Authorize(Policy = AuthzConstants.PLATFORM_ACCESS_AUTHORIZATION)] [Consumes(MediaTypeNames.Application.Json)] [Produces(MediaTypeNames.Application.Json)] - [ProducesResponseType(typeof(IEnumerable), StatusCodes.Status200OK)] + [ProducesResponseType(typeof(Paginated), StatusCodes.Status200OK)] [ProducesResponseType(typeof(void), StatusCodes.Status401Unauthorized)] [ProducesResponseType(typeof(void), StatusCodes.Status403Forbidden)] [ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)] @@ -149,7 +149,7 @@ public async Task Delegation([FromBody] AppsInstanceDelegationRequ [Route("v1/app/delegations/resource/{resourceId}/instance/{instanceId}")] [Consumes(MediaTypeNames.Application.Json)] [Produces(MediaTypeNames.Application.Json)] - [ProducesResponseType(typeof(AppsInstanceDelegationResponseDto), StatusCodes.Status200OK)] + [ProducesResponseType(typeof(Paginated), StatusCodes.Status200OK)] [ProducesResponseType(typeof(void), StatusCodes.Status401Unauthorized)] [ProducesResponseType(typeof(void), StatusCodes.Status403Forbidden)] [ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status500InternalServerError)] @@ -251,7 +251,7 @@ public async Task Get([FromRoute] string resourceId, [FromRoute] s [Route("v1/app/delegationrevoke/resource/{resourceId}/instance/{instanceId}")] [Consumes(MediaTypeNames.Application.Json)] [Produces(MediaTypeNames.Application.Json)] - [ProducesResponseType(typeof(AppsInstanceDelegationResponseDto), StatusCodes.Status200OK)] + [ProducesResponseType(typeof(Paginated), StatusCodes.Status200OK)] [ProducesResponseType(typeof(void), StatusCodes.Status401Unauthorized)] [ProducesResponseType(typeof(void), StatusCodes.Status403Forbidden)] [ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status500InternalServerError)]