Merge branch 'dev' into featute/null-enabled

This commit is contained in:
on.nemtina 2023-04-13 11:17:27 +05:00
commit b71022bb97
2 changed files with 6 additions and 5 deletions

View File

@ -51,14 +51,15 @@ namespace AsbCloudWebApi.Controllers
/// <summary>
/// Возвращает список имен типов операций на скважине
/// </summary>
/// <param name="includeParents">флаг, нужно ли включать родителей в список</param>
/// <returns></returns>
[HttpGet]
[Route("categories")]
[Permission]
[ProducesResponseType(typeof(IEnumerable<WellOperationCategoryDto>), (int)System.Net.HttpStatusCode.OK)]
public IActionResult GetCategories()
public IActionResult GetCategories(bool includeParents = true)
{
var result = operationRepository.GetCategories(false);
var result = operationRepository.GetCategories(includeParents);
return Ok(result);
}

View File

@ -10,13 +10,13 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<PublishProvider>FileSystem</PublishProvider>
<PublishUrl>bin\pubLinuxDebug\</PublishUrl>
<PublishUrl>bin\pubDebug\</PublishUrl>
<WebPublishMethod>FileSystem</WebPublishMethod>
<_TargetId>Folder</_TargetId>
<SiteUrlToLaunchAfterPublish />
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<ProjectGuid>a2768702-47cb-4127-941c-e339d5efcffe</ProjectGuid>
<SelfContained>true</SelfContained>
<SelfContained>false</SelfContained>
</PropertyGroup>
</Project>