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

@@ -49,11 +49,6 @@ namespace AyaNova.Api.Controllers
/// <summary>
/// Get form customizations for Client form display
/// Returns 304 not modified if concurrency token provided and unchanged
///
/// Required roles:
/// Any
///
/// </summary>
/// <param name="formkey">The official form key used by AyaNova</param>
/// <param name="concurrencyToken">A prior concurrency token used to check if there are any changes without using up bandwidth sending unnecessary data</param>
@@ -95,7 +90,7 @@ namespace AyaNova.Api.Controllers
@@ -104,10 +99,6 @@ namespace AyaNova.Api.Controllers
/// Used to build UI for customizing a form
/// These values are a subset of the AyaDataTypes values
/// which can be fetched from the EnumPickList route
///
/// Required roles:
/// BizAdminFull only has rights to customize forms
///
/// </summary>
/// <returns>A list of valid values for custom field types</returns>
[HttpGet("AvailableCustomTypes")]
@@ -128,10 +119,6 @@ namespace AyaNova.Api.Controllers
/// <summary>
/// Get a list of all customizable form keys
/// Used to build UI for customizing a form
///
/// Required roles:
/// BizAdminFull only has rights to customize forms
///
/// </summary>
/// <returns>A list of string formKey values valid for customization</returns>
[HttpGet("AvailableCustomizableFormKeys")]
@@ -153,9 +140,6 @@ namespace AyaNova.Api.Controllers
/// <summary>
/// Put (update) FormCustom
///
/// Required roles: BizAdminFull
///
/// </summary>
/// <param name="formkey"></param>
/// <param name="inObj"></param>
@@ -195,38 +179,6 @@ namespace AyaNova.Api.Controllers
}
// /// <summary>
// /// Post FormCustom
// ///
// /// Required roles: BizAdminFull
// /// </summary>
// /// <param name="inObj"></param>
// /// <param name="apiVersion">Automatically filled from route path, no need to specify in body</param>
// /// <returns></returns>
// [HttpPost]
// public async Task<IActionResult> PostFormCustom([FromBody] FormCustom inObj, ApiVersion apiVersion)
// {
// if (!serverState.IsOpen)
// return StatusCode(503, new ApiErrorResponse(ApiErrorCode.API_CLOSED, null, serverState.Reason));
// //Instantiate the business object handler
// FormCustomBiz biz = FormCustomBiz.GetBiz(ct, HttpContext);
// //check rights
// if (!Authorized.HasCreateRole(HttpContext.Items, biz.BizType))
// return StatusCode(403, new ApiNotAuthorizedResponse());
// if (!ModelState.IsValid)
// return BadRequest(new ApiErrorResponse(ModelState));
// //Create and validate
// FormCustom o = await biz.CreateAsync(inObj);
// if (o == null)
// return BadRequest(new ApiErrorResponse(biz.Errors));
// else
// return CreatedAtAction(nameof(FormCustomController.GetFormCustom), new { formkey = o.FormKey, version = apiVersion.ToString() }, new ApiCreatedResponse(o));
// }