API Layer on top of Kaartenbak CMS, using Netlify functions.
/
- Returns an overview of all factsheets in HTML
/api/factsheet?id=${id}&format=${format}
- Returns factsheet details in either HTML or JSON
- Where
id
is the factsheet id - Where
format
is eitherhtml
orjson
/api/layer?id=${id}&format=${format}
- Returns layer metadata in either XML or JSON
- Where
id
is the layer id - Where
format
is eitherxml
orjson
/api/search?viewer=${viewer}&query=${query}
- Returns layers of a viewer in JSON
- Where
viewer
is the viewer name - Where
query
is the search query
/api/sync-layer
- Meant for the webhook of DatoCMS Kaartenbak. See below for the details.
/api/sync-viewer-layer
- Meant for the webhook of DatoCMS Kaartenbak. See below for the details.