Skip to content

API v1: Requests

We're adding the UI for Requests in genesys-ui#38 (closed) and the existing requests API doesn't use "standard" parameter names for pagination and sorting.

Implement a new version of the RequestsController in org.genesys2.server.api.v1 package.

  • Copy existing controller
@RestController("requestApi1")
@PreAuthorize("isAuthenticated()")
@RequestMapping(RequestsController.API_BASE) // = ApiBaseController.APIv1_BASE + "/request";
@Api(tags = { "requests" })
  • Update list method to use the standard method signature and argument names (see InstituteController#list)
  • Add RequestFilter and implement missing list methods using filters.