update packs Swashbuckle.AspNetCore*.

Fix optional param MeasureController.GetHisoryAsync()
This commit is contained in:
Фролов 2021-12-24 15:50:30 +05:00
parent f2c416a071
commit 896e5dc8db
2 changed files with 4 additions and 4 deletions

View File

@ -23,8 +23,8 @@
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="5.0.7" />
<PackageReference Include="protobuf-net" Version="3.0.101" />
<PackageReference Include="protobuf-net.AspNetCore" Version="3.0.101" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.1.1" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="6.1.1" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="6.2.3" />
</ItemGroup>
<ItemGroup>

View File

@ -47,11 +47,11 @@ namespace AsbCloudWebApi.Controllers
/// История замеров по скважине
/// </summary>
/// <param name="idWell"></param>
/// <param name="idCategory">Категория скважины. Не обязательный параметр. По умолчанию null</param>
/// <param name="idCategory">Категория скважины. Не обязательный параметр.</param>
/// <param name="token"></param>
/// <returns></returns>
[HttpGet]
[Route("history/{idCategory?}")]
[Route("history")]
public async Task<IActionResult> GetHisoryAsync([FromRoute] int idWell, int? idCategory = null, CancellationToken token = default)
{
if (!await CanUserAccessToWellAsync(idWell, token).ConfigureAwait(false))