This commit is contained in:
@@ -13,7 +13,7 @@ namespace AyaNova.Api.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/form-field-definition")]
|
||||
[Route("api/v{version:apiVersion}/form-field-reference")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class FormFieldsDefinitionsController : ControllerBase
|
||||
@@ -38,7 +38,7 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Get available fields for Form specified
|
||||
/// Get field reference list for Form specified
|
||||
/// Used at UI for customizing forms
|
||||
/// </summary>
|
||||
/// <param name="key"></param>
|
||||
@@ -52,9 +52,9 @@ namespace AyaNova.Api.Controllers
|
||||
if (!ModelState.IsValid)
|
||||
return BadRequest(new ApiErrorResponse(ModelState));
|
||||
|
||||
if (AyaFormFieldDefinitions.IsValidFormFieldDefinitionKey(key))
|
||||
if (FormFieldReference.IsValidFormFieldKey(key))
|
||||
{
|
||||
return Ok(ApiOkResponse.Response(AyaFormFieldDefinitions.AyaFormFields(key)));
|
||||
return Ok(ApiOkResponse.Response(FormFieldReference.FormFieldReferenceList(key)));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user