Skip to content

Commit

Permalink
Merge pull request #167 from CSCfi/devel
Browse files Browse the repository at this point in the history
Hide infrastructure and organization endpoints
  • Loading branch information
sarkikos authored Nov 15, 2024
2 parents e91f110 + c2abead commit c61fb85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public InfrastructureController(
[ProducesResponseType(typeof(IEnumerable<Infrastructure>), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(void), StatusCodes.Status401Unauthorized)]
[ProducesResponseType(typeof(void),StatusCodes.Status403Forbidden)]
[ApiExplorerSettings(IgnoreApi = true)] // Hidden
public async Task<IEnumerable<Infrastructure>> Get([FromQuery] GetInfrastructuresQueryParameters infrastructuresQueryParameters, [FromQuery] PaginationQueryParameters paginationQueryParameters)
{
var (infrastructures, searchResult) = await _service.GetInfrastructures(infrastructuresQueryParameters, paginationQueryParameters);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public OrganizationController(
[ProducesResponseType(typeof(IEnumerable<Organization>), StatusCodes.Status200OK)]
[ProducesResponseType(typeof(void), StatusCodes.Status401Unauthorized)]
[ProducesResponseType(typeof(void),StatusCodes.Status403Forbidden)]
[ApiExplorerSettings(IgnoreApi = true)] // Hidden
public async Task<IEnumerable<Organization>> Get([FromQuery] GetOrganizationsQueryParameters organizationsQueryParameters, [FromQuery] PaginationQueryParameters paginationQueryParameters)
{
var (organizations, searchResult) = await _service.GetOrganizations(organizationsQueryParameters, paginationQueryParameters);
Expand Down

0 comments on commit c61fb85

Please sign in to comment.