use of org.entando.entando.aps.system.services.entity.model.AttributeTypeDto in project entando-core by entando.
the class DataTypeController method getDataTypeAttributeType.
@RestAccessControl(permission = Permission.SUPERUSER)
@RequestMapping(value = "/dataTypeAttributes/{attributeTypeCode}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<SimpleRestResponse<AttributeTypeDto>> getDataTypeAttributeType(@PathVariable String attributeTypeCode) throws JsonProcessingException {
logger.debug("Extracting attribute type -> {}", attributeTypeCode);
AttributeTypeDto attribute = this.getDataObjectService().getAttributeType(attributeTypeCode);
logger.debug("Main Response -> {}", attribute);
return new ResponseEntity<>(new SimpleRestResponse<>(attribute), HttpStatus.OK);
}
Aggregations