This commit is contained in:
2020-03-18 21:59:04 +00:00
parent c99eed383f
commit aa690bd97a
3 changed files with 7 additions and 7 deletions

View File

@@ -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));
}

View File

@@ -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