Skip to content

Commit

Permalink
Fix response datatypes for Apps InstanceDelegation API (#153)
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Kjetil Øye <[email protected]>
  • Loading branch information
jonkjetiloye and Jon Kjetil Øye authored Dec 9, 2024
1 parent 0408c23 commit 0ef5e6a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public AppsInstanceDelegationController(
[Authorize(Policy = AuthzConstants.PLATFORM_ACCESS_AUTHORIZATION)]
[Consumes(MediaTypeNames.Application.Json)]
[Produces(MediaTypeNames.Application.Json)]
[ProducesResponseType(typeof(IEnumerable<ResourceRightDelegationCheckResultDto>), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(Paginated<ResourceRightDelegationCheckResultDto>), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(void), StatusCodes.Status401Unauthorized)]
[ProducesResponseType(typeof(void), StatusCodes.Status403Forbidden)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status400BadRequest)]
Expand Down Expand Up @@ -149,7 +149,7 @@ public async Task<ActionResult> 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<AppsInstanceDelegationResponseDto>), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(void), StatusCodes.Status401Unauthorized)]
[ProducesResponseType(typeof(void), StatusCodes.Status403Forbidden)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status500InternalServerError)]
Expand Down Expand Up @@ -251,7 +251,7 @@ public async Task<ActionResult> 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<AppsInstanceRevokeResponseDto>), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(void), StatusCodes.Status401Unauthorized)]
[ProducesResponseType(typeof(void), StatusCodes.Status403Forbidden)]
[ProducesResponseType(typeof(ProblemDetails), StatusCodes.Status500InternalServerError)]
Expand Down

0 comments on commit 0ef5e6a

Please sign in to comment.