This commit is contained in:
2020-05-07 18:49:49 +00:00
parent ea3e5fee2f
commit 0b09c6778a

View File

@@ -370,7 +370,7 @@ namespace AyaNova.Api.Controllers
/// <param name="newObject"></param> /// <param name="newObject"></param>
/// <param name="apiVersion">Automatically filled from route path, no need to specify in body</param> /// <param name="apiVersion">Automatically filled from route path, no need to specify in body</param>
/// <returns></returns> /// <returns></returns>
[HttpPost("/items")] [HttpPost("items")]
public async Task<IActionResult> PostWorkOrderItem([FromBody] WorkOrderItem newObject, ApiVersion apiVersion) public async Task<IActionResult> PostWorkOrderItem([FromBody] WorkOrderItem newObject, ApiVersion apiVersion)
{ {
//NOTE: we don't need the workorder id in the route because the workorder item must contain the workorder id anyway //NOTE: we don't need the workorder id in the route because the workorder item must contain the workorder id anyway
@@ -405,7 +405,7 @@ namespace AyaNova.Api.Controllers
/// </summary> /// </summary>
/// <param name="workOrderItemId"></param> /// <param name="workOrderItemId"></param>
/// <returns>Ok-no content</returns> /// <returns>Ok-no content</returns>
[HttpDelete("/items/{WorkOrderItemId}")] [HttpDelete("items/{WorkOrderItemId}")]
public async Task<IActionResult> DeleteWorkOrderItem([FromRoute] long workOrderItemId) public async Task<IActionResult> DeleteWorkOrderItem([FromRoute] long workOrderItemId)
{ {
//NOTE: we don't need the workorder id in the route because the workorder item must contain the workorder id anyway //NOTE: we don't need the workorder id in the route because the workorder item must contain the workorder id anyway
@@ -458,7 +458,7 @@ namespace AyaNova.Api.Controllers
/// </summary> /// </summary>
/// <param name="workOrderItemLaborId"></param> /// <param name="workOrderItemLaborId"></param>
/// <returns>Ok-no content</returns> /// <returns>Ok-no content</returns>
[HttpDelete("/items/labors/{WorkOrderItemLaborId}")] [HttpDelete("items/labors/{WorkOrderItemLaborId}")]
public async Task<IActionResult> DeleteWorkOrderItemLabor([FromRoute] long workOrderItemLaborId) public async Task<IActionResult> DeleteWorkOrderItemLabor([FromRoute] long workOrderItemLaborId)
{ {
if (!serverState.IsOpen) if (!serverState.IsOpen)
@@ -512,7 +512,7 @@ namespace AyaNova.Api.Controllers
/// </summary> /// </summary>
/// <param name="workOrderItemPartId"></param> /// <param name="workOrderItemPartId"></param>
/// <returns>Ok-no content</returns> /// <returns>Ok-no content</returns>
[HttpDelete("/items/parts/{WorkOrderItemPartId}")] [HttpDelete("items/parts/{WorkOrderItemPartId}")]
public async Task<IActionResult> DeleteWorkOrderItemPart([FromRoute] long workOrderItemPartId) public async Task<IActionResult> DeleteWorkOrderItemPart([FromRoute] long workOrderItemPartId)
{ {
if (!serverState.IsOpen) if (!serverState.IsOpen)