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:
@@ -14,7 +14,7 @@ namespace AyaNova.Api.Controllers
|
||||
{
|
||||
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Asp.Versioning.ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/quote")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
@@ -56,7 +56,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// <param name="apiVersion">From route path</param>
|
||||
/// <returns>Quote</returns>
|
||||
[HttpPost]
|
||||
public async Task<IActionResult> PostQuote([FromBody] Quote newObject, ApiVersion apiVersion)
|
||||
public async Task<IActionResult> PostQuote([FromBody] Quote newObject, Asp.Versioning.ApiVersion apiVersion)
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
@@ -85,7 +85,7 @@ namespace AyaNova.Api.Controllers
|
||||
// /// <param name="apiVersion">From route path</param>
|
||||
// /// <returns>Quote</returns>
|
||||
// [HttpPost("duplicate/{id}")]
|
||||
// public async Task<IActionResult> DuplicateQuote([FromRoute] long id, ApiVersion apiVersion)
|
||||
// public async Task<IActionResult> DuplicateQuote([FromRoute] long id, Asp.Versioning.ApiVersion apiVersion)
|
||||
// {
|
||||
// if (!serverState.IsOpen)
|
||||
// return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
@@ -225,7 +225,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// <param name="apiVersion"></param>
|
||||
/// <returns>QuoteState object</returns>
|
||||
[HttpPost("states")]
|
||||
public async Task<IActionResult> PostQuoteState([FromBody] QuoteState newObject, ApiVersion apiVersion)
|
||||
public async Task<IActionResult> PostQuoteState([FromBody] QuoteState newObject, Asp.Versioning.ApiVersion apiVersion)
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
@@ -288,7 +288,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// <param name="apiVersion"></param>
|
||||
/// <returns>QuoteItem object</returns>
|
||||
[HttpPost("items")]
|
||||
public async Task<IActionResult> PostQuoteItem([FromBody] QuoteItem newObject, ApiVersion apiVersion)
|
||||
public async Task<IActionResult> PostQuoteItem([FromBody] QuoteItem newObject, Asp.Versioning.ApiVersion apiVersion)
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
@@ -397,7 +397,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// <param name="apiVersion"></param>
|
||||
/// <returns>QuoteItemExpense object (no descendants)</returns>
|
||||
[HttpPost("items/expenses")]
|
||||
public async Task<IActionResult> PostQuoteItemExpense([FromBody] QuoteItemExpense newObject, ApiVersion apiVersion)
|
||||
public async Task<IActionResult> PostQuoteItemExpense([FromBody] QuoteItemExpense newObject, Asp.Versioning.ApiVersion apiVersion)
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
@@ -504,7 +504,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// <param name="apiVersion"></param>
|
||||
/// <returns>QuoteItemLabor object (no descendants)</returns>
|
||||
[HttpPost("items/labors")]
|
||||
public async Task<IActionResult> PostQuoteItemLabor([FromBody] QuoteItemLabor newObject, ApiVersion apiVersion)
|
||||
public async Task<IActionResult> PostQuoteItemLabor([FromBody] QuoteItemLabor newObject, Asp.Versioning.ApiVersion apiVersion)
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
@@ -613,7 +613,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// <param name="apiVersion"></param>
|
||||
/// <returns>QuoteItemLoan object (no descendants)</returns>
|
||||
[HttpPost("items/loans")]
|
||||
public async Task<IActionResult> PostQuoteItemLoan([FromBody] QuoteItemLoan newObject, ApiVersion apiVersion)
|
||||
public async Task<IActionResult> PostQuoteItemLoan([FromBody] QuoteItemLoan newObject, Asp.Versioning.ApiVersion apiVersion)
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
@@ -722,7 +722,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// <param name="apiVersion"></param>
|
||||
/// <returns>QuoteItemOutsideService object (no descendants)</returns>
|
||||
[HttpPost("items/outside-services")]
|
||||
public async Task<IActionResult> PostQuoteItemOutsideService([FromBody] QuoteItemOutsideService newObject, ApiVersion apiVersion)
|
||||
public async Task<IActionResult> PostQuoteItemOutsideService([FromBody] QuoteItemOutsideService newObject, Asp.Versioning.ApiVersion apiVersion)
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
@@ -829,7 +829,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// <param name="apiVersion"></param>
|
||||
/// <returns>QuoteItemPart object (no descendants)</returns>
|
||||
[HttpPost("items/parts")]
|
||||
public async Task<IActionResult> PostQuoteItemPart([FromBody] QuoteItemPart newObject, ApiVersion apiVersion)
|
||||
public async Task<IActionResult> PostQuoteItemPart([FromBody] QuoteItemPart newObject, Asp.Versioning.ApiVersion apiVersion)
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
@@ -936,7 +936,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// <param name="apiVersion"></param>
|
||||
/// <returns>QuoteItemScheduledUser object (no descendants)</returns>
|
||||
[HttpPost("items/scheduled-users")]
|
||||
public async Task<IActionResult> PostQuoteItemScheduledUser([FromBody] QuoteItemScheduledUser newObject, ApiVersion apiVersion)
|
||||
public async Task<IActionResult> PostQuoteItemScheduledUser([FromBody] QuoteItemScheduledUser newObject, Asp.Versioning.ApiVersion apiVersion)
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
@@ -1042,7 +1042,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// <param name="apiVersion"></param>
|
||||
/// <returns>QuoteItemTask object (no descendants)</returns>
|
||||
[HttpPost("items/tasks")]
|
||||
public async Task<IActionResult> PostQuoteItemTask([FromBody] QuoteItemTask newObject, ApiVersion apiVersion)
|
||||
public async Task<IActionResult> PostQuoteItemTask([FromBody] QuoteItemTask newObject, Asp.Versioning.ApiVersion apiVersion)
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
@@ -1148,7 +1148,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// <param name="apiVersion"></param>
|
||||
/// <returns>QuoteItemTravel object (no descendants)</returns>
|
||||
[HttpPost("items/travels")]
|
||||
public async Task<IActionResult> PostQuoteItemTravel([FromBody] QuoteItemTravel newObject, ApiVersion apiVersion)
|
||||
public async Task<IActionResult> PostQuoteItemTravel([FromBody] QuoteItemTravel newObject, Asp.Versioning.ApiVersion apiVersion)
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
return StatusCode(503, new ApiErrorResponse(serverState.ApiErrorCode, null, serverState.Reason));
|
||||
@@ -1254,7 +1254,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// <param name="apiVersion"></param>
|
||||
/// <returns>QuoteItemUnit object (no descendants)</returns>
|
||||
[HttpPost("items/units")]
|
||||
public async Task<IActionResult> PostQuoteItemUnit([FromBody] QuoteItemUnit newObject, ApiVersion apiVersion)
|
||||
public async Task<IActionResult> PostQuoteItemUnit([FromBody] QuoteItemUnit 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