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: Fri Mar 15 2024 14:11:33 GMT+0200 (Eastern European Standard Time)