case 4586 - fuck it, everything is interdependent, just went for it, mostly buildable just reporting to fixup then testing after this
This commit is contained in:
@@ -16,7 +16,7 @@ using System;
|
||||
namespace AyaNova.Api.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Asp.Versioning.ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/unit")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
@@ -46,7 +46,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// <param name="apiVersion">From route path</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<IActionResult> PostUnit([FromBody] Unit newObject, ApiVersion apiVersion)
|
||||
public async Task<IActionResult> PostUnit([FromBody] Unit newObject, Asp.Versioning.ApiVersion apiVersion)
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
@@ -69,7 +69,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// <param name="apiVersion">From route path</param>
|
||||
/// <returns>Id of newly created Unit or error response</returns>
|
||||
[HttpPost("customerunit")]
|
||||
public async Task<IActionResult> CustomerPostUnit([FromBody] CustomerPostUnit newObject, ApiVersion apiVersion)
|
||||
public async Task<IActionResult> CustomerPostUnit([FromBody] CustomerPostUnit newObject, Asp.Versioning.ApiVersion apiVersion)
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
@@ -389,7 +389,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// <param name="apiVersion">From route path</param>
|
||||
/// <returns></returns>
|
||||
[HttpPost("meter-reading")]
|
||||
public async Task<IActionResult> PostUnitMeterReading([FromBody] UnitMeterReading newObject, ApiVersion apiVersion)
|
||||
public async Task<IActionResult> PostUnitMeterReading([FromBody] UnitMeterReading newObject, Asp.Versioning.ApiVersion apiVersion)
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
|
||||
Reference in New Issue
Block a user