This commit is contained in:
@@ -49,9 +49,6 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
/// <summary>
|
||||
/// Get User
|
||||
///
|
||||
/// Required roles:
|
||||
/// BizAdminFull, BizAdminLimited
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns>A single User</returns>
|
||||
@@ -88,78 +85,9 @@ namespace AyaNova.Api.Controllers
|
||||
}
|
||||
|
||||
|
||||
// /// <summary>
|
||||
// /// Get paged list of Users
|
||||
// ///
|
||||
// /// Required roles:
|
||||
// /// BizAdminFull, BizAdminLimited
|
||||
// ///
|
||||
// /// </summary>
|
||||
// /// <returns>Paged collection of Users with paging data</returns>
|
||||
// [HttpGet("ListUsers", Name = nameof(ListUsers))]//We MUST have a "Name" defined or we can't get the link for the pagination, non paged urls don't need a name
|
||||
// public async Task<IActionResult> ListUsers([FromQuery] ListOptions pagingOptions)
|
||||
// {
|
||||
|
||||
// if (serverState.IsClosed)
|
||||
// {
|
||||
// return StatusCode(503, new ApiErrorResponse(ApiErrorCode.API_CLOSED, null, serverState.Reason));
|
||||
// }
|
||||
|
||||
// //Instantiate the business object handler
|
||||
// UserBiz biz = UserBiz.GetBiz(ct, HttpContext);
|
||||
|
||||
// if (!Authorized.HasReadFullRole(HttpContext.Items, biz.BizType))
|
||||
// {
|
||||
// return StatusCode(403, new ApiNotAuthorizedResponse());
|
||||
// }
|
||||
|
||||
// if (!ModelState.IsValid)
|
||||
// {
|
||||
// return BadRequest(new ApiErrorResponse(ModelState));
|
||||
// }
|
||||
|
||||
|
||||
|
||||
// ApiPagedResponse<System.Object> pr = await biz.GetManyAsync(Url, nameof(ListUsers), pagingOptions);
|
||||
// return Ok(new ApiOkWithPagingResponse<System.Object>(pr));
|
||||
// }
|
||||
|
||||
|
||||
|
||||
// /// <summary>
|
||||
// /// Get User pick list
|
||||
// ///
|
||||
// /// Required roles: Any
|
||||
// ///
|
||||
// /// </summary>
|
||||
// /// <param name="pagingOptions">Paging, filtering and sorting options</param>
|
||||
// /// <returns>Paged id/name collection with paging data</returns>
|
||||
// [HttpGet("PickList", Name = nameof(UserPickList))]
|
||||
// public ActionResult UserPickList([FromQuery] ListOptions pagingOptions)
|
||||
// {
|
||||
// if (serverState.IsClosed)
|
||||
// {
|
||||
// return StatusCode(503, new ApiErrorResponse(ApiErrorCode.API_CLOSED, null, serverState.Reason));
|
||||
// }
|
||||
|
||||
// if (!ModelState.IsValid)
|
||||
// {
|
||||
// return BadRequest(new ApiErrorResponse(ModelState));
|
||||
// }
|
||||
|
||||
// //Instantiate the business object handler
|
||||
// UserBiz biz = UserBiz.GetBiz(ct, HttpContext);
|
||||
// ApiPagedResponse<NameIdItem> pr = biz.GetPickList(Url, nameof(UserPickList), pagingOptions);
|
||||
// return Ok(new ApiOkWithPagingResponse<NameIdItem>(pr));
|
||||
// }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Put (update) User
|
||||
///
|
||||
/// Required roles:
|
||||
/// BizAdminFull
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="inObj"></param>
|
||||
@@ -220,10 +148,6 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
/// <summary>
|
||||
/// Patch (update) User
|
||||
///
|
||||
/// Required roles:
|
||||
/// BizAdminFull
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="concurrencyToken"></param>
|
||||
@@ -282,10 +206,6 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
/// <summary>
|
||||
/// Post User
|
||||
///
|
||||
/// Required roles:
|
||||
/// BizAdminFull
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="inObj"></param>
|
||||
/// <param name="apiVersion">Automatically filled from route path, no need to specify in body</param>
|
||||
@@ -337,10 +257,6 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
/// <summary>
|
||||
/// Delete User
|
||||
///
|
||||
/// Required roles:
|
||||
/// BizAdminFull
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns>Ok</returns>
|
||||
|
||||
Reference in New Issue
Block a user