mirror of
https://github.com/maplibre/martin.git
synced 2024-12-22 06:11:33 +03:00
550a46bd0f
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" }, ... }, } ```
44 lines
1.2 KiB
JSON
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"
|
|
}
|
|
}
|
|
}
|