in api/src/main/java/org/apache/fineract/cn/office/api/v1/client/OrganizationManager.java [110:192]
OfficePage getBranches(@PathVariable("identifier") final String identifier,
@RequestParam(value = "pageIndex", required = false) final Integer pageIndex,
@RequestParam(value = "size", required = false) final Integer size,
@RequestParam(value = "sortColumn", required = false) final String sortColumn,
@RequestParam(value = "sortDirection", required = false) final String sortDirection);
@RequestMapping(
value = "/offices/{identifier}",
method = RequestMethod.DELETE,
consumes = MediaType.APPLICATION_JSON_VALUE,
produces = MediaType.ALL_VALUE
)
@ThrowsException(status = HttpStatus.CONFLICT, exception = ChildrenExistException.class)
void deleteOffice(@PathVariable("identifier") final String identifier);
@RequestMapping(
value = "/offices/{identifier}/address",
method = RequestMethod.PUT,
consumes = MediaType.APPLICATION_JSON_VALUE,
produces = MediaType.APPLICATION_JSON_VALUE
)
@ThrowsException(status = HttpStatus.NOT_FOUND, exception = NotFoundException.class)
void setAddressForOffice(@PathVariable("identifier") final String identifier, @RequestBody final Address address);
@RequestMapping(
value = "/offices/{identifier}/address",
method = RequestMethod.GET,
consumes = MediaType.APPLICATION_JSON_VALUE,
produces = MediaType.ALL_VALUE
)
Address getAddressOfOffice(@PathVariable("identifier") final String identifier);
@RequestMapping(
value = "/offices/{identifier}/address",
method = RequestMethod.DELETE,
consumes = MediaType.APPLICATION_JSON_VALUE,
produces = MediaType.ALL_VALUE
)
@ThrowsException(status = HttpStatus.NOT_FOUND, exception = NotFoundException.class)
void deleteAddressOfOffice(@PathVariable("identifier") final String identifier);
@RequestMapping(
value = "/employees",
method = RequestMethod.POST,
consumes = MediaType.APPLICATION_JSON_VALUE,
produces = MediaType.APPLICATION_JSON_VALUE
)
@ThrowsException(status = HttpStatus.CONFLICT, exception = AlreadyExistsException.class)
void createEmployee(@RequestBody final Employee employee);
@RequestMapping(
value = "/employees",
method = RequestMethod.GET,
consumes = MediaType.APPLICATION_JSON_VALUE,
produces = MediaType.ALL_VALUE
)
@ThrowsException(status = HttpStatus.NOT_FOUND, exception = NotFoundException.class)
EmployeePage fetchEmployees(@RequestParam(value = "term", required = false) final String term,
@RequestParam(value = "office", required = false) final String officeIdentifier,
@RequestParam(value = "pageIndex", required = false) final Integer pageIndex,
@RequestParam(value = "size", required = false) final Integer size,
@RequestParam(value = "sortColumn", required = false) final String sortColumn,
@RequestParam(value = "sortDirection", required = false) final String sortDirection);
@RequestMapping(
value = "/employees/{useridentifier}",
method = RequestMethod.GET,
consumes = MediaType.APPLICATION_JSON_VALUE,
produces = MediaType.ALL_VALUE
)
@ThrowsException(status = HttpStatus.NOT_FOUND, exception = NotFoundException.class)
Employee findEmployee(@PathVariable("useridentifier") final String identifier);
@RequestMapping(
value = "/employees/{useridentifier}",
method = RequestMethod.PUT,
consumes = MediaType.APPLICATION_JSON_VALUE,
produces = MediaType.APPLICATION_JSON_VALUE
)
@ThrowsExceptions({
@ThrowsException(status = HttpStatus.NOT_FOUND, exception = NotFoundException.class),
@ThrowsException(status = HttpStatus.BAD_REQUEST, exception = BadRequestException.class)
})