Project

General

Profile

API » History » Version 11

« Previous - Version 11/72 (diff) - Next » - Current version
Maarten Plieger, 10/23/2015 07:43 AM


API

Access token API

Generate a token which can be used to access C4I services: List all tokens available for the current user:
  • WMS can be used via
    https://climate4impact.eu/impactportal/WMS/<accesstoken>/?
  • WPS can be used via
    https://climate4impact.eu/impactportal/WPS/<accesstoken>/?
  • File download requests and OpenDAP requests from the basket can be done via
    https://climate4impact.eu/impactportal/DAP/<accesstoken>/<userid>/<file>"
  • Impact service requests can be done via
    https://climate4impact.eu/impactportal/ImpactService/<accesstoken>/?

Basket requests

  • Get overview of all files in the users basket: service=basket&request=getoverview,
    • e.g.
      https://climate4impact.eu/impactportal/basket?&service=basket&request=getoverview&
    • For commandline access with an access token:
      https://climate4impact.eu/impactportal/basket/<accesstoken>/?&service=basket&request=getoverview&

{

  "text": "https://esg-dn1.nsc.liu.se/esgf-idp/openid/maartenplieger",

  "browser": "/impactportal/data/catalogbrowser.jsp?",

  "children": [

    {

      "text": "Remote data",

      "children": [],

      "leaf": false,

      "expanded": true,

      "date": "",

      "iconCls": "typeFolder" 

    },

    {

      "text": "My data",

      "children": [

        {

          "id": "INTER_OPER_R___RD3_____L3__20100101T000000_20100201T000000_0004.nc",

          "index": 1,

          "filesize": "611.573K",

          "text": "INTER_OPER_R___RD3_____L3__20100101T000000_20100201T000000_0004.nc",

          "hashttp": true,

          "hasdap": true,

          "dapurl": "https://localhost/impactportal/DAP/esg-dn1.nsc.liu.se.esgf-idp.openid.maartenplieger/INTER_OPER_R___RD3_____L3__20100101T000000_20100201T000000_0004.nc",

          "leaf": true,

          "date": "2014-06-06 14:31:23Z",

          "type": "file",

          "iconCls": "typeOF",

          "httpurl": "https://localhost/impactportal/DAP/esg-dn1.nsc.liu.se.esgf-idp.openid.maartenplieger/INTER_OPER_R___RD3_____L3__20100101T000000_20100201T000000_0004.nc" 

        },

        {

          "id": "tasmax_day_CNRM-CM5_historical_r1i1p1_1890.nc",

          "index": 2,

          "filesize": "47.867M",

          "text": "tasmax_day_CNRM-CM5_historical_r1i1p1_1890.nc",

          "hashttp": true,

          "hasdap": true,

          "dapurl": "https://localhost/impactportal/DAP/esg-dn1.nsc.liu.se.esgf-idp.openid.maartenplieger/tasmax_day_CNRM-CM5_historical_r1i1p1_1890.nc",

          "leaf": true,

          "date": "2015-10-23 09:37:33Z",

          "type": "file",

          "iconCls": "typeOF",

          "httpurl": "https://localhost/impactportal/DAP/esg-dn1.nsc.liu.se.esgf-idp.openid.maartenplieger/tasmax_day_CNRM-CM5_historical_r1i1p1_1890.nc" 

        }

      ],

      "leaf": false,

      "expanded": true,

      "date": "",

      "iconCls": "typeFolder" 

    }

  ],

  "leaf": false,

  "viewer": "/impactportal/data/datasetviewer.jsp?" 

}


WMS requests

OpenDAP requests

run_wps_from_client.py View - Runs a very simple WPS client on one of the services at climate4impact (2.86 KB) Maarten Plieger, 10/31/2016 03:14 PM