From f7e1e70724df2e8dae5bae07a21e02a13455d8b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Sa=CC=88rkikoski?= Date: Fri, 15 Nov 2024 09:44:19 +0200 Subject: [PATCH] Hide infrastructure and organization endpoints --- aspnetcore/src/Interface/Controllers/InfrastructureController.cs | 1 + aspnetcore/src/Interface/Controllers/OrganizationController.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/aspnetcore/src/Interface/Controllers/InfrastructureController.cs b/aspnetcore/src/Interface/Controllers/InfrastructureController.cs index ba998d0..122fc3a 100644 --- a/aspnetcore/src/Interface/Controllers/InfrastructureController.cs +++ b/aspnetcore/src/Interface/Controllers/InfrastructureController.cs @@ -45,6 +45,7 @@ public InfrastructureController( [ProducesResponseType(typeof(IEnumerable), StatusCodes.Status200OK)] [ProducesResponseType(typeof(void), StatusCodes.Status401Unauthorized)] [ProducesResponseType(typeof(void),StatusCodes.Status403Forbidden)] + [ApiExplorerSettings(IgnoreApi = true)] // Hidden public async Task> Get([FromQuery] GetInfrastructuresQueryParameters infrastructuresQueryParameters, [FromQuery] PaginationQueryParameters paginationQueryParameters) { var (infrastructures, searchResult) = await _service.GetInfrastructures(infrastructuresQueryParameters, paginationQueryParameters); diff --git a/aspnetcore/src/Interface/Controllers/OrganizationController.cs b/aspnetcore/src/Interface/Controllers/OrganizationController.cs index e56a2d9..513226a 100644 --- a/aspnetcore/src/Interface/Controllers/OrganizationController.cs +++ b/aspnetcore/src/Interface/Controllers/OrganizationController.cs @@ -45,6 +45,7 @@ public OrganizationController( [ProducesResponseType(typeof(IEnumerable), StatusCodes.Status200OK)] [ProducesResponseType(typeof(void), StatusCodes.Status401Unauthorized)] [ProducesResponseType(typeof(void),StatusCodes.Status403Forbidden)] + [ApiExplorerSettings(IgnoreApi = true)] // Hidden public async Task> Get([FromQuery] GetOrganizationsQueryParameters organizationsQueryParameters, [FromQuery] PaginationQueryParameters paginationQueryParameters) { var (organizations, searchResult) = await _service.GetOrganizations(organizationsQueryParameters, paginationQueryParameters);