forked from ddrilling/AsbCloudServer
update packs Swashbuckle.AspNetCore*.
Fix optional param MeasureController.GetHisoryAsync()
This commit is contained in:
parent
f2c416a071
commit
896e5dc8db
@ -23,8 +23,8 @@
|
|||||||
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="5.0.7" />
|
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="5.0.7" />
|
||||||
<PackageReference Include="protobuf-net" Version="3.0.101" />
|
<PackageReference Include="protobuf-net" Version="3.0.101" />
|
||||||
<PackageReference Include="protobuf-net.AspNetCore" 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" Version="6.2.3" />
|
||||||
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="6.1.1" />
|
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="6.2.3" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -47,11 +47,11 @@ namespace AsbCloudWebApi.Controllers
|
|||||||
/// История замеров по скважине
|
/// История замеров по скважине
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="idWell"></param>
|
/// <param name="idWell"></param>
|
||||||
/// <param name="idCategory">Категория скважины. Не обязательный параметр. По умолчанию null</param>
|
/// <param name="idCategory">Категория скважины. Не обязательный параметр.</param>
|
||||||
/// <param name="token"></param>
|
/// <param name="token"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
[Route("history/{idCategory?}")]
|
[Route("history")]
|
||||||
public async Task<IActionResult> GetHisoryAsync([FromRoute] int idWell, int? idCategory = null, CancellationToken token = default)
|
public async Task<IActionResult> GetHisoryAsync([FromRoute] int idWell, int? idCategory = null, CancellationToken token = default)
|
||||||
{
|
{
|
||||||
if (!await CanUserAccessToWellAsync(idWell, token).ConfigureAwait(false))
|
if (!await CanUserAccessToWellAsync(idWell, token).ConfigureAwait(false))
|
||||||
|
Loading…
Reference in New Issue
Block a user