class TableFieldMappingResource {

    @GET
    @Timed
    @Path("/{name}/fields")
    @ApiOperation("Get fields")
    public Response get(@PathParam("name") final String table,
                        @QueryParam("withCardinality") @DefaultValue("false") boolean withCardinality,
                        @QueryParam("calculateCardinality") @DefaultValue("false") boolean calculateCardinality) {
        return Response.ok(tableMetadataManager.getFieldMappings(table, withCardinality, calculateCardinality))
                .build();
    }

    @Inject public  TableFieldMappingResource(TableManager tableManager, TableMetadataManager tableMetadataManager);

}