@GetMapping(value = "/{entityTypeId}/meta", produces = APPLICATION_JSON_VALUE)
  public EntityTypeResponse retrieveEntityType(
      @PathVariable("entityTypeId") String entityTypeId,
      @RequestParam(value = "attributes", required = false) String[] attributes,
      @RequestParam(value = "expand", required = false) String[] attributeExpands) {
    Set<String> attributeSet = toAttributeSet(attributes);
    Map<String, Set<String>> attributeExpandSet = toExpandMap(attributeExpands);

    EntityType meta = dataService.getEntityType(entityTypeId);
    return new EntityTypeResponse(
        meta, attributeSet, attributeExpandSet, permissionService, dataService);
  }
@ GetMapping ( value = "/{entityTypeId}/meta" , produces = APPLICATION_JSON_VALUE ) public EntityTypeResponse retrieveEntityType ( @ PathVariable ( "entityTypeId" ) String entityTypeId , @ RequestParam ( value = "attributes" , required = false ) String [ ] attributes , @ RequestParam ( value = "expand" , required = false ) String [ ] attributeExpands ) { Set < String > attributeSet = toAttributeSet ( attributes ) ; Map < String , Set < String > > attributeExpandSet = toExpandMap ( attributeExpands ) ; EntityType meta = dataService . getEntityType ( entityTypeId ) ; return new EntityTypeResponse ( meta , attributeSet , attributeExpandSet , permissionService , dataService ) ; }
Gets the metadata for an entity

<p>Example url: /api/v1/person/meta

@return EntityType