This commit is contained in:
@@ -15,7 +15,7 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/[controller]")]
|
||||
[Route("api/v{version:apiVersion}/pm")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class PMController : ControllerBase
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace AyaNova.Api.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/[controller]")]
|
||||
[Route("api/v{version:apiVersion}/pm-template")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class PMTemplateController : ControllerBase
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace AyaNova.Api.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/[controller]")]
|
||||
[Route("api/v{version:apiVersion}/project")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class ProjectController : ControllerBase
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace AyaNova.Api.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/[controller]")]
|
||||
[Route("api/v{version:apiVersion}/purchase-order")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class PurchaseOrderController : ControllerBase
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/[controller]")]
|
||||
[Route("api/v{version:apiVersion}/quote")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class QuoteController : ControllerBase
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/[controller]")]
|
||||
[Route("api/v{version:apiVersion}/quote-template")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class QuoteTemplateController : ControllerBase
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// </summary>
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/[controller]")]
|
||||
[Route("api/v{version:apiVersion}/search")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class SearchController : ControllerBase
|
||||
@@ -77,7 +77,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// <param name="phrase"></param>
|
||||
/// <param name="max"></param>
|
||||
/// <returns>A search result excerpt of object</returns>
|
||||
[HttpGet("Info/{ayaType}/{id}")]
|
||||
[HttpGet("info/{ayaType}/{id}")]
|
||||
public async Task<IActionResult> GetInfo([FromRoute] AyaType ayaType, [FromRoute] long id, [FromQuery] string phrase, [FromQuery] int max = 80)
|
||||
{
|
||||
if (serverState.IsClosed)
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// </summary>
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/[controller]")]
|
||||
[Route("api/v{version:apiVersion}/server-state")]
|
||||
[Produces("application/json")]
|
||||
public class ServerStateController : ControllerBase
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// </summary>
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/[controller]")]
|
||||
[Route("api/v{version:apiVersion}/tag-list")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class TagListController : ControllerBase
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// </summary>
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/[controller]")]
|
||||
[Route("api/v{version:apiVersion}/translation")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class TranslationController : ControllerBase
|
||||
@@ -87,7 +87,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// Get Translations list
|
||||
/// </summary>
|
||||
/// <returns>List in alphabetical order of all Translations</returns>
|
||||
[HttpGet("List")]
|
||||
[HttpGet("list")]
|
||||
public async Task<IActionResult> TranslationList()
|
||||
{
|
||||
if (serverState.IsClosed)
|
||||
@@ -106,7 +106,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// Get a coverage report of translation keys used versus unused
|
||||
/// </summary>
|
||||
/// <returns>Report of all unique translation keys requested since last server reboot</returns>
|
||||
[HttpGet("TranslationKeyCoverage")]
|
||||
[HttpGet("translationkeycoverage")]
|
||||
public async Task<IActionResult> TranslationKeyCoverage()
|
||||
{
|
||||
if (serverState.IsClosed)
|
||||
@@ -126,7 +126,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// </summary>
|
||||
/// <param name="inObj">List of translation key strings</param>
|
||||
/// <returns>A key value array of translation text values</returns>
|
||||
[HttpPost("SubSet")]
|
||||
[HttpPost("subset")]
|
||||
public async Task<IActionResult> SubSet([FromBody] List<string> inObj)
|
||||
{
|
||||
if (serverState.IsClosed)
|
||||
@@ -148,7 +148,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// <param name="inObj">NameIdItem object containing source translation Id and new name</param>
|
||||
/// <param name="apiVersion">From route path</param>
|
||||
/// <returns>Error response or newly created translation</returns>
|
||||
[HttpPost("Duplicate")]
|
||||
[HttpPost("duplicate")]
|
||||
public async Task<IActionResult> Duplicate([FromBody] NameIdItem inObj, ApiVersion apiVersion)
|
||||
{
|
||||
if (serverState.IsClosed)
|
||||
@@ -178,7 +178,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// </summary>
|
||||
/// <param name="inObj">NewText/Id/Concurrency token object. NewText is new display text, Id is TranslationItem Id, concurrency token is required</param>
|
||||
/// <returns></returns>
|
||||
[HttpPut("UpdateTranslationItemDisplayText")]
|
||||
[HttpPut("updatetranslationitemdisplaytext")]
|
||||
public async Task<IActionResult> PutTranslationItemDisplayText([FromBody] NewTextIdConcurrencyTokenItem inObj)
|
||||
{
|
||||
if (serverState.IsClosed)
|
||||
@@ -245,7 +245,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// </summary>
|
||||
/// <param name="inObj">Array of NewText/Id/Concurrency token objects. NewText is new display text, Id is TranslationItem Id, concurrency token is required</param>
|
||||
/// <returns></returns>
|
||||
[HttpPut("UpdateTranslationItemsDisplayText")]
|
||||
[HttpPut("updatetranslationitemsdisplaytext")]
|
||||
public async Task<IActionResult> PutTranslationItemsDisplayText([FromBody] List<NewTextIdConcurrencyTokenItem> inObj)
|
||||
{
|
||||
if (serverState.IsClosed)
|
||||
@@ -304,7 +304,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// </summary>
|
||||
/// <param name="inObj">NewText/Id/Concurrency token object. NewText is new translation name, Id is Translation Id, concurrency token is required</param>
|
||||
/// <returns></returns>
|
||||
[HttpPut("UpdateTranslationName")]
|
||||
[HttpPut("updatetranslationname")]
|
||||
public async Task<IActionResult> PutTranslationName([FromBody] NewTextIdConcurrencyTokenItem inObj)
|
||||
{
|
||||
if (serverState.IsClosed)
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// </summary>
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/[controller]")]
|
||||
[Route("api/v{version:apiVersion}/trial")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class TrialController : ControllerBase
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace AyaNova.Api.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/[controller]")]
|
||||
[Route("api/v{version:apiVersion}/unit")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class UnitController : ControllerBase
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace AyaNova.Api.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/[controller]")]
|
||||
[Route("api/v{version:apiVersion}/unit-model")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class UnitModelController : ControllerBase
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// </summary>
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/[controller]")]
|
||||
[Route("api/v{version:apiVersion}/user")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class UserController : ControllerBase
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// </summary>
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/[controller]")]
|
||||
[Route("api/v{version:apiVersion}/user-option")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class UserOptionsController : ControllerBase
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace AyaNova.Api.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/[controller]")]
|
||||
[Route("api/v{version:apiVersion}/vendor")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class VendorController : ControllerBase
|
||||
|
||||
@@ -3,10 +3,7 @@ using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Routing;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
using AyaNova.Models;
|
||||
using AyaNova.Api.ControllerHelpers;
|
||||
using AyaNova.Biz;
|
||||
@@ -23,7 +20,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// </summary>
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/[controller]")]
|
||||
[Route("api/v{version:apiVersion}/widget")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class WidgetController : ControllerBase
|
||||
@@ -194,7 +191,7 @@ namespace AyaNova.Api.Controllers
|
||||
/// Get route that submits a simulated long running operation job for testing
|
||||
/// </summary>
|
||||
/// <returns>Nothing</returns>
|
||||
[HttpGet("TestWidgetJob")]
|
||||
[HttpGet("testwidgetjob")]
|
||||
public async Task<IActionResult> TestWidgetJob()
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/workorders")]
|
||||
[Route("api/v{version:apiVersion}/workorder")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class WorkOrderController : ControllerBase
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/[controller]")]
|
||||
[Route("api/v{version:apiVersion}/workorder-template")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class WorkOrderTemplateController : ControllerBase
|
||||
|
||||
Reference in New Issue
Block a user