diff --git a/AsbCloudWebApi/Controllers/WellSections/WellSectionPlanController.cs b/AsbCloudWebApi/Controllers/WellSections/WellSectionPlanController.cs
index 68167edb..3fd21c68 100644
--- a/AsbCloudWebApi/Controllers/WellSections/WellSectionPlanController.cs
+++ b/AsbCloudWebApi/Controllers/WellSections/WellSectionPlanController.cs
@@ -113,7 +113,7 @@ public class WellSectionPlanController : ControllerBase
/// Идентификатор скважины
///
///
- [HttpGet]
+ [HttpGet("wellSectionTypes")]
[ProducesResponseType(typeof(IEnumerable), StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status204NoContent)]
[ProducesResponseType(StatusCodes.Status403Forbidden)]
@@ -128,7 +128,29 @@ public class WellSectionPlanController : ControllerBase
return Ok(wellSectionTypes);
}
-
+
+ ///
+ /// Получить список секций
+ ///
+ /// Идентификатор скважины
+ ///
+ ///
+ [HttpGet]
+ [ProducesResponseType(typeof(IEnumerable), StatusCodes.Status200OK)]
+ [ProducesResponseType(StatusCodes.Status204NoContent)]
+ [ProducesResponseType(StatusCodes.Status403Forbidden)]
+ public async Task GetPlanWellSectionsAsync(int idWell, CancellationToken cancellationToken)
+ {
+ await AssertUserAccessToWell(idWell, cancellationToken);
+
+ var planWellSections = await wellSectionPlanRepository.GetByIdWellAsync(idWell, cancellationToken);
+
+ if (!planWellSections.Any())
+ return NoContent();
+
+ return Ok(planWellSections);
+ }
+
///
/// Удалить секцию
///