This commit is contained in:
2020-01-23 22:56:01 +00:00
parent 866428776f
commit 784ea46fd1
24 changed files with 365 additions and 902 deletions

View File

@@ -53,8 +53,6 @@ namespace AyaNova.Api.Controllers
/// <summary>
/// Get Locale all values
///
/// Required roles: Any
/// </summary>
/// <param name="id"></param>
/// <returns>A single Locale and it's values</returns>
@@ -90,8 +88,6 @@ namespace AyaNova.Api.Controllers
/// <summary>
/// Get Locale pick list
/// Required roles: Any
///
/// </summary>
/// <returns>Picklist in alphabetical order of all locales</returns>
[HttpGet("PickList")]
@@ -114,8 +110,6 @@ namespace AyaNova.Api.Controllers
#if (DEBUG)
/// <summary>
/// Get a coverage report of locale keys used versus unused
/// Required roles: Any
///
/// </summary>
/// <returns>Report of all unique locale keys requested since last server reboot</returns>
[HttpGet("LocaleKeyCoverage")]
@@ -138,8 +132,6 @@ namespace AyaNova.Api.Controllers
/// <summary>
/// Get subset of locale values
/// Required roles: Any
///
/// </summary>
/// <param name="inObj">List of locale key strings</param>
/// <returns>A key value array of localized text values</returns>
@@ -163,10 +155,7 @@ namespace AyaNova.Api.Controllers
/// <summary>
/// Duplicates an existing locale with a new name
///
/// Required roles: OpsAdminFull | BizAdminFull
///
/// Duplicates an existing locale with a new name
/// </summary>
/// <param name="inObj">NameIdItem object containing source locale Id and new name</param>
/// <param name="apiVersion">Automatically filled from route path, no need to specify in body</param>
@@ -192,7 +181,7 @@ namespace AyaNova.Api.Controllers
}
else
{
return CreatedAtAction(nameof(LocaleController.GetLocale), new { id = o.Id, version = apiVersion.ToString() }, new ApiCreatedResponse(o));
return CreatedAtAction(nameof(LocaleController.GetLocale), new { id = o.Id, version = apiVersion.ToString() }, new ApiCreatedResponse(o));
}
}
@@ -200,11 +189,7 @@ namespace AyaNova.Api.Controllers
/// <summary>
/// Put (UpdateLocaleItemDisplayText)
///
/// Required roles: OpsAdminFull | BizAdminFull
///
/// Update a single key with new display text
///
/// </summary>
/// <param name="inObj">NewText/Id/Concurrency token object. NewText is new display text, Id is LocaleItem Id, concurrency token is required</param>
/// <returns></returns>
@@ -271,12 +256,8 @@ namespace AyaNova.Api.Controllers
}
/// <summary>
/// Put (UpdateLocaleName)
///
/// Required roles: OpsAdminFull | BizAdminFull
///
/// Put (UpdateLocaleName)
/// Update a locale to change the name (non-stock locales only)
///
/// </summary>
/// <param name="inObj">NewText/Id/Concurrency token object. NewText is new locale name, Id is Locale Id, concurrency token is required</param>
/// <returns></returns>
@@ -339,10 +320,6 @@ namespace AyaNova.Api.Controllers
/// <summary>
/// Delete Locale
///
/// Required roles:
/// BizAdminFull, InventoryFull
///
/// </summary>
/// <param name="id"></param>
/// <returns>Ok</returns>
@@ -395,32 +372,6 @@ namespace AyaNova.Api.Controllers
}
// private bool LocaleExists(long id)
// {
// return ct.Locale.Any(e => e.Id == id);
// }
//------------
// public class LocaleSubsetParam
// {
// [System.ComponentModel.DataAnnotations.Required]
// public long LocaleId { get; set; }
// [System.ComponentModel.DataAnnotations.Required]
// public List<string> Keys { get; set; }
// public LocaleSubsetParam()
// {
// Keys = new List<string>();
// }
// }
#if (DEBUG)
public class LocaleCoverageInfo
{