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)]