Search in sources :

Example 1 with AttributeTypeDto

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);
}
Also used : ResponseEntity(org.springframework.http.ResponseEntity) AttributeTypeDto(org.entando.entando.aps.system.services.entity.model.AttributeTypeDto) RestAccessControl(org.entando.entando.web.common.annotation.RestAccessControl)

Aggregations

AttributeTypeDto (org.entando.entando.aps.system.services.entity.model.AttributeTypeDto)1 RestAccessControl (org.entando.entando.web.common.annotation.RestAccessControl)1 ResponseEntity (org.springframework.http.ResponseEntity)1