use of org.entando.entando.aps.system.services.dataobjectmodel.model.IEntityModelDictionary in project entando-core by entando.
the class DataObjectModelController method getDictionary.
@RestAccessControl(permission = Permission.SUPERUSER)
@RequestMapping(value = "/dictionary", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<SimpleRestResponse<IEntityModelDictionary>> getDictionary(@RequestParam(value = "typeCode", required = false) String typeCode) {
logger.debug("loading data model dictionary {}", typeCode);
IEntityModelDictionary dictionary = this.getDataObjectModelService().getDataModelDictionary(typeCode);
return new ResponseEntity<>(new SimpleRestResponse<>(dictionary), HttpStatus.OK);
}
Aggregations