This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user