datasets-api-gateway
An example server application for handling requests to the Mapbox Datasets API.
Running
Required environment variables:
MapboxAccessToken
: an access token with datasets:read and datasets:write scopes.MapboxDatasetID
: the ID of the wrapped dataset.
Optional variables for access control:
JWT_REQUIRED_FOR
: can beread
,read,write
, or nothingJWT_SECRET
: see express-jwt for documentation.JWT_AUDIENCE
: see express-jwt for documentation.