This commit is contained in:
2020-05-13 23:15:47 +00:00
parent dc6e8113a3
commit 1fb475827b
18 changed files with 31 additions and 31 deletions

View File

@@ -28,7 +28,7 @@ namespace AyaNova.Api.Controllers
/// </summary>
[ApiController]
[ApiVersion("8.0")]
[Route("api/v{version:apiVersion}/[controller]")]
[Route("api/v{version:apiVersion}/attachment")]
[Produces("application/json")]
public class AttachmentController : ControllerBase
{
@@ -148,7 +148,7 @@ namespace AyaNova.Api.Controllers
/// </summary>
/// <returns>file attachment list for object</returns>
[Authorize]
[HttpGet("List")]
[HttpGet("list")]
public async Task<IActionResult> GetList([FromQuery] AyaType ayaType, [FromQuery] long ayaId)
{
if (serverState.IsClosed)

View File

@@ -21,7 +21,7 @@ namespace AyaNova.Api.Controllers
/// </summary>
[ApiController]
[ApiVersion("8.0")]
[Route("api/v{version:apiVersion}/[controller]")]
[Route("api/v{version:apiVersion}/auth")]
[Produces("application/json")]
public class AuthController : ControllerBase
{
@@ -240,7 +240,7 @@ namespace AyaNova.Api.Controllers
/// </summary>
/// <param name="changecreds"></param>
/// <returns></returns>
[HttpPost("ChangePassword")]
[HttpPost("changepassword")]
public async Task<IActionResult> ChangePassword([FromBody] AuthController.ChangePasswordParam changecreds)
{
if (!serverState.IsOpen)

View File

@@ -17,7 +17,7 @@ namespace AyaNova.Api.Controllers
/// </summary>
[ApiController]
[ApiVersion("8.0")]
[Route("api/v{version:apiVersion}/[controller]")]
[Route("api/v{version:apiVersion}/authorization-roles")]
[Produces("application/json")]
[Authorize]
public class AuthorizationRolesController : ControllerBase

View File

@@ -33,7 +33,7 @@ namespace AyaNova.Api.Controllers
/// </summary>
[ApiController]
[ApiVersion("8.0")]
[Route("api/v{version:apiVersion}/[controller]")]
[Route("api/v{version:apiVersion}/backup")]
[Produces("application/json")]
[Authorize]
public class BackupController : ControllerBase

View File

@@ -13,7 +13,7 @@ namespace AyaNova.Api.Controllers
{
[ApiController]
[ApiVersion("8.0")]
[Route("api/v{version:apiVersion}/[controller]")]
[Route("api/v{version:apiVersion}/contract")]
[Produces("application/json")]
[Authorize]
public class ContractController : ControllerBase

View File

@@ -13,7 +13,7 @@ namespace AyaNova.Api.Controllers
{
[ApiController]
[ApiVersion("8.0")]
[Route("api/v{version:apiVersion}/[controller]")]
[Route("api/v{version:apiVersion}/customer")]
[Produces("application/json")]
[Authorize]
public class CustomerController : ControllerBase

View File

@@ -15,7 +15,7 @@ namespace AyaNova.Api.Controllers
[ApiController]
[ApiVersion("8.0")]
[Route("api/v{version:apiVersion}/[controller]")]
[Route("api/v{version:apiVersion}/data-list")]
[Produces("application/json")]
[Authorize]
public class DataListController : ControllerBase
@@ -91,7 +91,7 @@ namespace AyaNova.Api.Controllers
/// List of all DataList keys available
/// </summary>
/// <returns>List of strings</returns>
[HttpGet("ListKeys")]
[HttpGet("listkeys")]
public ActionResult GetDataListKeys()
{
if (!serverState.IsOpen)
@@ -105,7 +105,7 @@ namespace AyaNova.Api.Controllers
/// List of all fields for data list key specified
/// </summary>
/// <returns>List of DataListFieldDefinition</returns>
[HttpGet("ListFields")]
[HttpGet("listfields")]
public ActionResult GetDataListFields([FromQuery] string DataListKey)
{
if (!serverState.IsOpen)

View File

@@ -18,7 +18,7 @@ namespace AyaNova.Api.Controllers
/// </summary>
[ApiController]
[ApiVersion("8.0")]
[Route("api/v{version:apiVersion}/[controller]")]
[Route("api/v{version:apiVersion}/enum-list")]
[Produces("application/json")]
[Authorize]
public class EnumListController : ControllerBase
@@ -47,7 +47,7 @@ namespace AyaNova.Api.Controllers
/// </summary>
/// <param name="enumkey">The key name of the enumerated type</param>
/// <returns>List</returns>
[HttpGet("List/{enumkey}")]
[HttpGet("list/{enumkey}")]
public ActionResult GetList([FromRoute]string enumkey)
{
if (serverState.IsClosed)

View File

@@ -18,7 +18,7 @@ namespace AyaNova.Api.Controllers
/// </summary>
[ApiController]
[ApiVersion("8.0")]
[Route("api/v{version:apiVersion}/[controller]")]
[Route("api/v{version:apiVersion}/event-log")]
[Authorize]
public class EventLogController : ControllerBase
{
@@ -50,7 +50,7 @@ namespace AyaNova.Api.Controllers
///
/// </summary>
/// <returns>Event log entry list for object</returns>
[HttpGet("ObjectLog")]
[HttpGet("objectlog")]
public async Task<IActionResult> GetObjectLog([FromQuery] EventLogOptions opt)
{
if (serverState.IsClosed)
@@ -77,7 +77,7 @@ namespace AyaNova.Api.Controllers
///
/// </summary>
/// <returns>Event log for user</returns>
[HttpGet("UserLog")]
[HttpGet("userlog")]
public async Task<IActionResult> GetUserLog([FromQuery] UserEventLogOptions opt)
{
if (serverState.IsClosed)

View File

@@ -21,7 +21,7 @@ namespace AyaNova.Api.Controllers
/// </summary>
[ApiController]
[ApiVersion("8.0")]
[Route("api/v{version:apiVersion}/[controller]")]
[Route("api/v{version:apiVersion}/form-custom")]
[Produces("application/json")]
[Authorize]
public class FormCustomController : ControllerBase
@@ -101,7 +101,7 @@ namespace AyaNova.Api.Controllers
/// which can be fetched from the EnumList route
/// </summary>
/// <returns>A list of valid values for custom field types</returns>
[HttpGet("AvailableCustomTypes")]
[HttpGet("availablecustomtypes")]
public ActionResult GetAvailableCustomTypes()
{
if (!serverState.IsOpen)
@@ -121,7 +121,7 @@ namespace AyaNova.Api.Controllers
/// Used to build UI for customizing a form
/// </summary>
/// <returns>A list of string formKey values valid for customization</returns>
[HttpGet("AvailableCustomizableFormKeys")]
[HttpGet("availablecustomizableformkeys")]
public ActionResult GetAvailableCustomizableFormKeys()
{
if (!serverState.IsOpen)

View File

@@ -13,7 +13,7 @@ namespace AyaNova.Api.Controllers
{
[ApiController]
[ApiVersion("8.0")]
[Route("api/v{version:apiVersion}/[controller]")]
[Route("api/v{version:apiVersion}/form-field-definition")]
[Produces("application/json")]
[Authorize]
public class FormFieldsDefinitionsController : ControllerBase
@@ -43,7 +43,7 @@ namespace AyaNova.Api.Controllers
/// </summary>
/// <param name="FormFieldDefinitionKey"></param>
/// <returns>List of form fields and their properties</returns>
[HttpGet("{FormFieldDefinitionKey}")]
[HttpGet("{formfielddefinitionkey}")]
public ActionResult GetFormFields([FromRoute] string FormFieldDefinitionKey)
{
if (!serverState.IsOpen)

View File

@@ -13,7 +13,7 @@ namespace AyaNova.Api.Controllers
[ApiController]
[ApiVersion("8.0")]
[Route("api/v{version:apiVersion}/[controller]")]
[Route("api/v{version:apiVersion}/global-biz-setting")]
[Produces("application/json")]
[Authorize]
public class GlobalBizSettingsController : ControllerBase

View File

@@ -13,7 +13,7 @@ namespace AyaNova.Api.Controllers
{
[ApiController]
[ApiVersion("8.0")]
[Route("api/v{version:apiVersion}/[controller]")]
[Route("api/v{version:apiVersion}/head-office")]
[Produces("application/json")]
[Authorize]
public class HeadOfficeController : ControllerBase

View File

@@ -19,7 +19,7 @@ namespace AyaNova.Api.Controllers
/// </summary>
[ApiController]
[ApiVersion("8.0")]
[Route("api/v{version:apiVersion}/[controller]")]
[Route("api/v{version:apiVersion}/job-operations")]
[Produces("application/json")]
[Authorize]
public class JobOperationsController : ControllerBase

View File

@@ -21,7 +21,7 @@ namespace AyaNova.Api.Controllers
/// </summary>
[ApiController]
[ApiVersion("8.0")]
[Route("api/v{version:apiVersion}/[controller]")]
[Route("api/v{version:apiVersion}/license")]
[Produces("application/json")]
[Authorize]
public class LicenseController : ControllerBase
@@ -198,7 +198,7 @@ namespace AyaNova.Api.Controllers
/// </summary>
/// <param name="acceptCode">Must be "I understand"</param>
/// <returns>HTTP 204 No Content result code on success or fail code with explanation</returns>
[HttpPost("PermanentlyEraseAllData")]
[HttpPost("permanently-erase-all-data")]
public async Task<IActionResult> RemoveAllData([FromBody] string acceptCode)
{
if (serverState.IsClosed)

View File

@@ -13,7 +13,7 @@ namespace AyaNova.Api.Controllers
{
[ApiController]
[ApiVersion("8.0")]
[Route("api/v{version:apiVersion}/[controller]")]
[Route("api/v{version:apiVersion}/loan-unit")]
[Produces("application/json")]
[Authorize]
public class LoanUnitController : ControllerBase

View File

@@ -18,7 +18,7 @@ namespace AyaNova.Api.Controllers
/// </summary>
[ApiController]
[ApiVersion("8.0")]
[Route("api/v{version:apiVersion}/[controller]")]
[Route("api/v{version:apiVersion}/log-file")]
//[Produces("application/json")]
[Authorize]
public class LogFilesController : ControllerBase

View File

@@ -20,7 +20,7 @@ namespace AyaNova.Api.Controllers
/// </summary>
[ApiController]
[ApiVersion("8.0")]
[Route("api/v{version:apiVersion}/[controller]")]
[Route("api/v{version:apiVersion}/metric")]
[Authorize]
public class MetricsController : ControllerBase
{
@@ -49,7 +49,7 @@ namespace AyaNova.Api.Controllers
/// Get metrics as text document
/// </summary>
/// <returns>Snapshot of metrics</returns>
[HttpGet("TextSnapShot")]
[HttpGet("textsnapshot")]
public async Task<IActionResult> GetMetrics()
{
if (serverState.IsClosed)
@@ -73,7 +73,7 @@ namespace AyaNova.Api.Controllers
/// Get metrics as json object
/// </summary>
/// <returns>Snapshot of metrics</returns>
[HttpGet("JsonSnapShot")]
[HttpGet("jsonsnapshot")]
public async Task<IActionResult> GetJsonMetrics()
{
if (serverState.IsClosed)