GetAdminMapLayers (POST | GET)
This action route returns all the maplayers which are accessible by the current user and all admin data of those layers. This is needed when layers are created and updated by admins.
Parameters
Name | Type | Description | Required? |
---|---|---|---|
layer_id | int | If defined this action route will return info of just that particular layer. | **false** |
lang | String | Localization. If no lang parameter is given, backend will default to Finnish. | **false** |
showEmpty | Boolean | If parameter is given and it is true, backend will response also empty "folders". | **false** |
Response
Success
{
"layers": [
{
// layer data
// + admin related layer data
}
]
}
Error
Returns HTTP code 500 with an error message as a JSON in response body. {"error":"Couldn't request DB service - get map layers"} {"error":"Map layer listing failed - get map layers"}
Examples
Example query for Paikkatietoikkuna
Response:
Example curl request
{
"layers": [
{
// layer data
// + admin related layer data
}
]
}
Last modified: Tue Sep 17 2024 12:23:36 GMT+0300 (Eastern European Summer Time)