This commit is contained in:
@@ -13,7 +13,7 @@ namespace AyaNova.Api.Controllers
|
|||||||
{
|
{
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[ApiVersion("8.0")]
|
[ApiVersion("8.0")]
|
||||||
[Route("api/v{version:apiVersion}/[controller]")]
|
[Route("api/v{version:apiVersion}/part")]
|
||||||
[Produces("application/json")]
|
[Produces("application/json")]
|
||||||
[Authorize]
|
[Authorize]
|
||||||
public class PartController : ControllerBase
|
public class PartController : ControllerBase
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace AyaNova.Api.Controllers
|
|||||||
|
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[ApiVersion("8.0")]
|
[ApiVersion("8.0")]
|
||||||
[Route("api/v{version:apiVersion}/[controller]")]
|
[Route("api/v{version:apiVersion}/pick-list")]
|
||||||
[Produces("application/json")]
|
[Produces("application/json")]
|
||||||
[Authorize]
|
[Authorize]
|
||||||
public class PickListController : ControllerBase
|
public class PickListController : ControllerBase
|
||||||
@@ -57,7 +57,7 @@ namespace AyaNova.Api.Controllers
|
|||||||
/// <param name="inactive">Include inactive objects in the returned list </param>
|
/// <param name="inactive">Include inactive objects in the returned list </param>
|
||||||
/// <param name="preId">Return only one item (for pre-selected items on forms) </param>
|
/// <param name="preId">Return only one item (for pre-selected items on forms) </param>
|
||||||
/// <returns>Filtered list</returns>
|
/// <returns>Filtered list</returns>
|
||||||
[HttpGet("List")]
|
[HttpGet("list")]
|
||||||
public async Task<IActionResult> GetList([FromQuery]AyaType ayaType, [FromQuery]string query, [FromQuery] bool inactive, [FromQuery]long? preId)
|
public async Task<IActionResult> GetList([FromQuery]AyaType ayaType, [FromQuery]string query, [FromQuery] bool inactive, [FromQuery]long? preId)
|
||||||
{
|
{
|
||||||
if (serverState.IsClosed)
|
if (serverState.IsClosed)
|
||||||
@@ -97,7 +97,7 @@ namespace AyaNova.Api.Controllers
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="ayaType"></param>
|
/// <param name="ayaType"></param>
|
||||||
/// <returns>The current effective template, either a customized one or the default</returns>
|
/// <returns>The current effective template, either a customized one or the default</returns>
|
||||||
[HttpGet("Template/{ayaType}")]
|
[HttpGet("template/{ayaType}")]
|
||||||
public async Task<IActionResult> GetPickListTemplate([FromRoute] AyaType ayaType)
|
public async Task<IActionResult> GetPickListTemplate([FromRoute] AyaType ayaType)
|
||||||
{
|
{
|
||||||
if (serverState.IsClosed)
|
if (serverState.IsClosed)
|
||||||
@@ -125,7 +125,7 @@ namespace AyaNova.Api.Controllers
|
|||||||
/// List of all PickList templates
|
/// List of all PickList templates
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>List of strings</returns>
|
/// <returns>List of strings</returns>
|
||||||
[HttpGet("Template/List")]
|
[HttpGet("template/list")]
|
||||||
public ActionResult GetTemplateList()
|
public ActionResult GetTemplateList()
|
||||||
{
|
{
|
||||||
if (!serverState.IsOpen)
|
if (!serverState.IsOpen)
|
||||||
@@ -153,7 +153,7 @@ namespace AyaNova.Api.Controllers
|
|||||||
/// <param name="template"></param>
|
/// <param name="template"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
// [HttpPost("Template/{ayaType}")]
|
// [HttpPost("Template/{ayaType}")]
|
||||||
[HttpPost("Template")]
|
[HttpPost("template")]
|
||||||
public async Task<IActionResult> ReplacePickListTemplate([FromBody] PickListTemplate template)
|
public async Task<IActionResult> ReplacePickListTemplate([FromBody] PickListTemplate template)
|
||||||
{
|
{
|
||||||
if (!serverState.IsOpen)
|
if (!serverState.IsOpen)
|
||||||
@@ -192,7 +192,7 @@ namespace AyaNova.Api.Controllers
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="ayaType"></param>
|
/// <param name="ayaType"></param>
|
||||||
/// <returns>Ok</returns>
|
/// <returns>Ok</returns>
|
||||||
[HttpDelete("Template/{ayaType}")]
|
[HttpDelete("template/{ayaType}")]
|
||||||
public async Task<IActionResult> DeletePickListTemplate([FromRoute] AyaType ayaType)
|
public async Task<IActionResult> DeletePickListTemplate([FromRoute] AyaType ayaType)
|
||||||
{
|
{
|
||||||
if (!serverState.IsOpen)
|
if (!serverState.IsOpen)
|
||||||
@@ -219,7 +219,7 @@ namespace AyaNova.Api.Controllers
|
|||||||
/// List of all fields for pick list AyaType specified
|
/// List of all fields for pick list AyaType specified
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>List of fields available for template</returns>
|
/// <returns>List of fields available for template</returns>
|
||||||
[HttpGet("Template/ListFields/{ayaType}")]
|
[HttpGet("template/listfields/{ayaType}")]
|
||||||
public ActionResult GetPickListFields([FromRoute] AyaType ayaType)
|
public ActionResult GetPickListFields([FromRoute] AyaType ayaType)
|
||||||
{
|
{
|
||||||
if (!serverState.IsOpen)
|
if (!serverState.IsOpen)
|
||||||
|
|||||||
Reference in New Issue
Block a user