-
URL /api/data/test/
-
Method
GET
-
Success Response: Returns test string
- Code: 200
- Content:
test
-
URL /api/conf/kepler
-
Method
GET
-
Success Response: Returns a kepler.gl formated json of the dataset
- Code: 200
- Content:
{
"version": "v1",
"config": {
"visState": {},
"mapState": {},
"mapStyle": {}
}
}
-
URL /api/conf/kepler
-
Method
GET
-
Success Response: Returns a kepler.gl formated json of the dataset
- Code: 200
- Content:
{
"siteTitle": "Instance Name",
"mapboxToken": "mapboxToken",
"defaultMapLocation": {
"latitude": 0,
"longitude": 0,
"zoom": 10
},
"defaultMapBoxStyleUrl": "mapbox://styles/yourmapboxstyle",
"modules": {
"exportDataBtn": true
},
"theme": {
"filterSidePanel": {
"buttonColorRange": [
"#dc7e6d",
"#69b59d",
"#c3c356"
]
}
},
"bottomRightButtons": [
{
"text": "hey im a button",
"url": "url"
},
{
"text": "hey im a button",
"url": "url"
}
],
"layers": [
{
"name": "layerName",
"type": "notion",
"url": "notionUrl",
"id": 0
},
{
"name": "GeoJson Data api",
"type": "geojson",
"url": "url",
"id": 1
}
]
}
-
URL /api/conf/kepler
-
Method
POST
-
Data Constrains
The kepler json is created trough the kepler interface
body:
form-data
key:configuration_kepler
value:
{
"version": "v1",
"config": {
"visState": {},
"mapState": {},
"mapStyle": {}
}
}
- Success Response:
- Code: 200
- Content:
-
URL /api/conf/instance
-
Method
POST
-
Data Constrains
The kepler json is created trough the kepler interface
body:
form-data
key:configuration_instance
value:
{
"siteTitle": "Instance Name",
"mapboxToken": "mapboxToken",
"defaultMapLocation": {
"latitude": 0,
"longitude": 0,
"zoom": 10
},
"defaultMapBoxStyleUrl": "mapbox://styles/yourmapboxstyle",
"modules": {
"exportDataBtn": true
},
"theme": {
"filterSidePanel": {
"buttonColorRange": [
"#dc7e6d",
"#69b59d",
"#c3c356"
]
}
},
"bottomRightButtons": [
{
"text": "hey im a button",
"url": "url"
},
{
"text": "hey im a button",
"url": "url"
}
],
"layers": [
{
"name": "layerName",
"type": "notion",
"url": "notionUrl",
"id": 0
},
{
"name": "GeoJson Data api",
"type": "geojson",
"url": "url",
"id": 1
}
]
}
- Success Response:
- Code: 200
- Content:
-
Platform Name: For now the only platform supported by the back is notion
-
URL /api/data/{platform_name}/{datasetId}
-
Method
GET
-
Success Response: Returns a kepler.gl formated json of the dataset
- Code: 200
- Content:
{ fields: {}, rows: {} }