diff --git a/AsbCloudWebApi/Controllers/WellSectionController.cs b/AsbCloudWebApi/Controllers/WellSectionController.cs
index 4817cb83..23836d2f 100644
--- a/AsbCloudWebApi/Controllers/WellSectionController.cs
+++ b/AsbCloudWebApi/Controllers/WellSectionController.cs
@@ -8,6 +8,9 @@ using System.Threading.Tasks;
namespace AsbCloudWebApi.Controllers
{
+ ///
+ /// Контроллер секций скважины
+ ///
[Route("api/well/{idWell}/sections")]
[ApiController]
[Authorize]
@@ -23,6 +26,7 @@ namespace AsbCloudWebApi.Controllers
}
[HttpGet]
+ [ProducesResponseType(typeof(IEnumerable), (int)System.Net.HttpStatusCode.OK)]
public async Task GetAllAsync(int idWell, int skip = 0, int take = 32,
CancellationToken token = default)
{
@@ -35,6 +39,7 @@ namespace AsbCloudWebApi.Controllers
[HttpGet]
[Route("{idSection}")]
+ [ProducesResponseType(typeof(WellSectionDto), (int)System.Net.HttpStatusCode.OK)]
public async Task GetAsync(int idWell, int idSection,
CancellationToken token = default)
{
@@ -46,6 +51,7 @@ namespace AsbCloudWebApi.Controllers
}
[HttpPost]
+ [ProducesResponseType(typeof(IEnumerable), (int)System.Net.HttpStatusCode.OK)]
public async Task InsertAsync(int idWell, [FromBody] IEnumerable values,
CancellationToken token = default)
{
@@ -57,6 +63,7 @@ namespace AsbCloudWebApi.Controllers
}
[HttpPut("{idSection}")]
+ [ProducesResponseType(typeof(WellSectionDto), (int)System.Net.HttpStatusCode.OK)]
public async Task UpdateAsync(int idWell, int idSection, [FromBody] WellSectionDto value, CancellationToken token = default)
{
if (!await CanUserAccessToWellAsync(idWell, token))
@@ -67,6 +74,7 @@ namespace AsbCloudWebApi.Controllers
}
[HttpDelete("{idSection}")]
+ [ProducesResponseType(typeof(int), (int)System.Net.HttpStatusCode.OK)]
public async Task DeleteAsync(int idWell, int idSection, CancellationToken token = default)
{
if (!await CanUserAccessToWellAsync(idWell, token))