GetViews
Returns either published views or the views the user has saved.
Parameters
Name | Type | Description | Required? |
---|---|---|---|
viewType | String | USER or PUBLISHED (defaults to USER) | false |
Response
Success
{
"views": [
// Object for each view
{
"id": "<view id>",
"description": "<view description>",
"lang": "<view language>",
"isPublic": "<Boolean>",
"name": "<view name>",
"pubDomain": "<public domain of the view>",
"state": {
// State object
}
}
]
}
Examples
Example query for Paikkatietoikkuna
http://www.paikkatietoikkuna.fi/web/fi/kartta?p_p_id=Portti2Map_WAR_portti2mapportlet&p_p_lifecycle=2&action_route=GetViews
With POST params:
{
"viewType": "USER"
}
Last modified: Tue Sep 17 2024 12:23:36 GMT+0300 (Eastern European Summer Time)