martin/tests/expected/configured/catalog_cfg.json
Yuri Astrakhan 550a46bd0f
(breaking) Future-proof source catalog (#754)
Modify `/catalog` endpoint to return an object instead of a list. This
allows future expansion of the catalog schema, e.g. adding new types of
data.

The new schema:

```yaml
{
  "tiles" {
    "function_zxy_query": {
      "name": "public.function_zxy_query",
      "content_type": "application/x-protobuf"
    },
    "points1": {
      "name": "public.points1.geom",
      "content_type": "image/webp"
    },
    ...
  },
}
```
2023-08-28 04:31:22 +00:00

44 lines
1.2 KiB
JSON

{
"tiles": {
"MixPoints": {
"content_type": "application/x-protobuf",
"description": "MixedCase.MixPoints.Geom"
},
"auto_table": {
"content_type": "application/x-protobuf",
"description": "autodetect.auto_table.geom"
},
"bigint_table": {
"content_type": "application/x-protobuf",
"description": "autodetect.bigint_table.geom"
},
"function_zxy_query": {
"content_type": "application/x-protobuf",
"description": "public.function_zxy_query"
},
"function_zxy_query_test": {
"content_type": "application/x-protobuf",
"description": "public.function_zxy_query_test"
},
"pmt": {
"content_type": "image/png"
},
"points1": {
"content_type": "application/x-protobuf",
"description": "public.points1.geom"
},
"points2": {
"content_type": "application/x-protobuf",
"description": "public.points2.geom"
},
"points3857": {
"content_type": "application/x-protobuf",
"description": "public.points3857.geom"
},
"table_source": {
"content_type": "application/x-protobuf",
"description": "public.table_source.geom"
}
}
}