class TargetTypesController {

	@ApiOperation(httpMethod = "GET", value = "API to get all target types categories", response = Response.class,  produces = MediaType.APPLICATION_JSON_VALUE)
	@RequestMapping(path = "/list-categories", method = RequestMethod.GET,  produces = MediaType.APPLICATION_JSON_VALUE)
	public ResponseEntity<Object> getAllTargetTypesCategories() {
		try {
			return ResponseUtils.buildSucessResponse(targetTypesService.getAllTargetTypesCategories());
		} catch (Exception exception) {
			log.error(UNEXPECTED_ERROR_OCCURRED, exception);
			return ResponseUtils.buildFailureResponse(new Exception(UNEXPECTED_ERROR_OCCURRED), exception.getMessage());
		}
	}

}