This commit is contained in:
@@ -12,7 +12,7 @@ namespace AyaNova.Api.Controllers
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Enum pick list controller
|
||||
///
|
||||
/// </summary>
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
@@ -41,19 +41,19 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Get tag picklist
|
||||
/// Get tag list
|
||||
/// </summary>
|
||||
/// <param name="query">The query to filter the returned list by</param>
|
||||
/// <returns>Filtered list (maximum 25 items are returned for any query)</returns>
|
||||
[HttpGet("picklist")]
|
||||
public async Task<IActionResult> GetPickList([FromQuery]string query)
|
||||
[HttpGet("list")]
|
||||
public async Task<IActionResult> GetList([FromQuery]string query)
|
||||
{
|
||||
if (!serverState.IsOpen)
|
||||
{
|
||||
return StatusCode(503, new ApiErrorResponse(ApiErrorCode.API_CLOSED, null, serverState.Reason));
|
||||
}
|
||||
|
||||
return Ok(ApiOkResponse.Response(await TagUtil.PickListFilteredAsync(ct, query), true));
|
||||
return Ok(ApiOkResponse.Response(await TagUtil.TagListFilteredAsync(ct, query), true));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -157,7 +157,7 @@ namespace AyaNova.Biz
|
||||
|
||||
//Pick list for driving pick list route
|
||||
//going with contains for now as I think it's more useful in the long run and still captures startswith intent by user
|
||||
public static async Task<List<string>> PickListFilteredAsync(AyContext ct, string q)
|
||||
public static async Task<List<string>> TagListFilteredAsync(AyContext ct, string q)
|
||||
{
|
||||
//This path is intended for internal use and accepts that there may not be a filter specified
|
||||
//however the client will always require a filter to display a tag list for choosing from
|
||||
|
||||
Reference in New Issue
Block a user