class TargetTypesController {

	@ApiOperation(httpMethod = "POST", value = "API to get attribute values", response = Response.class, produces = MediaType.APPLICATION_JSON_VALUE)
	@RequestMapping(path = "/list-target-type-attributes-values", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
	public ResponseEntity<Object> getAttributeValues(
			@ApiParam(value = "provide valid attribute request details", required = true) @RequestBody(required = true) AttributeValuesRequest attributeValuesRequest) {
		try {
			return ResponseUtils.buildSucessResponse(targetTypesService.getAttributeValues(attributeValuesRequest));
		} catch (Exception exception) {
			log.error(UNEXPECTED_ERROR_OCCURRED, exception);
			return ResponseUtils.buildFailureResponse(new Exception(UNEXPECTED_ERROR_OCCURRED), exception.getMessage());
		}
	}

}