forked from ddrilling/AsbCloudServer
Renamed DrillParamsController methods
This commit is contained in:
parent
f7fedb16e8
commit
e34bb4b554
@ -10,7 +10,7 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <summary>
|
||||
/// Контроллер для режимов бурения
|
||||
/// </summary>
|
||||
[Route("api/drillParams")]
|
||||
[Route("api/drillParams/{idWell}")]
|
||||
[ApiController]
|
||||
public class DrillParamsController : ControllerBase
|
||||
{
|
||||
@ -32,9 +32,9 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <param name="endDepth"> Конечная глубина </param>
|
||||
/// <param name="token"> Токен отмены задачи </param>
|
||||
/// <returns> Значения по умолчанию для режимов бурения </returns>
|
||||
[HttpGet("idWell/autoParams")]
|
||||
[HttpGet("/autoParams")]
|
||||
[ProducesResponseType(typeof(DrillParamsDto), (int) System.Net.HttpStatusCode.OK)]
|
||||
public async Task<IActionResult> GetDefaultDrillParamsAsync(int idWell,
|
||||
public async Task<IActionResult> GetDefaultAsync(int idWell,
|
||||
double startDepth, double endDepth, CancellationToken token = default)
|
||||
{
|
||||
var idCompany = User.GetCompanyId();
|
||||
@ -55,9 +55,9 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <param name="idWell"> id скважины </param>
|
||||
/// <param name="token"> Токен отмены задачи </param>
|
||||
/// <returns> Список параметров для режимов бурения на скважине </returns>
|
||||
[HttpGet("idWell")]
|
||||
[HttpGet]
|
||||
[ProducesResponseType(typeof(IEnumerable<DrillParamsDto>), (int) System.Net.HttpStatusCode.OK)]
|
||||
public async Task<IActionResult> GetDrillParamsAsync(int idWell,
|
||||
public async Task<IActionResult> GetAllAsync(int idWell,
|
||||
CancellationToken token = default)
|
||||
{
|
||||
var idCompany = User.GetCompanyId();
|
||||
@ -78,9 +78,9 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <param name="drillParamsDto"> Параметры режимов бурений для секции</param>
|
||||
/// <param name="token"> Токен отмены задачи </param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("idWell")]
|
||||
[HttpPost]
|
||||
[ProducesResponseType(typeof(int), (int) System.Net.HttpStatusCode.OK)]
|
||||
public async Task<IActionResult> SaveDrillParamsAsync(int idWell,
|
||||
public async Task<IActionResult> SaveAsync(int idWell,
|
||||
DrillParamsDto drillParamsDto, CancellationToken token = default)
|
||||
{
|
||||
var idCompany = User.GetCompanyId();
|
||||
@ -101,9 +101,9 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <param name="drillParamsDto"> Параметры режимов бурений для секции</param>
|
||||
/// <param name="token"> Токен отмены задачи </param>
|
||||
/// <returns></returns>
|
||||
[HttpPut("idWell")]
|
||||
[HttpPut]
|
||||
[ProducesResponseType(typeof(int), (int) System.Net.HttpStatusCode.OK)]
|
||||
public async Task<IActionResult> EditDrillParamsAsync(int idWell,
|
||||
public async Task<IActionResult> EditAsync(int idWell,
|
||||
DrillParamsDto drillParamsDto, CancellationToken token = default)
|
||||
{
|
||||
var idCompany = User.GetCompanyId();
|
||||
@ -125,9 +125,9 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <param name="drillParamsId"> Id объекта параметров режима бурений для секции</param>
|
||||
/// <param name="token"> Токен отмены задачи </param>
|
||||
/// <returns></returns>
|
||||
[HttpDelete("idWell")]
|
||||
[HttpDelete]
|
||||
[ProducesResponseType(typeof(int), (int) System.Net.HttpStatusCode.OK)]
|
||||
public async Task<IActionResult> DeleteDrillParamsAsync(int idWell,
|
||||
public async Task<IActionResult> DeleteAsync(int idWell,
|
||||
int drillParamsId, CancellationToken token = default)
|
||||
{
|
||||
var idCompany = User.GetCompanyId();
|
||||
|
@ -248,7 +248,6 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <summary>
|
||||
/// Возвращает шаблон файла импорта
|
||||
/// </summary>
|
||||
/// <param name="token"> Токен отмены задачи </param>
|
||||
/// <returns>Запрашиваемый файл</returns>
|
||||
[HttpGet]
|
||||
[Route("tamplate")]
|
||||
|
Loading…
Reference in New Issue
Block a user