Project

General

Profile

API » History » Version 12

Version 11 (Maarten Plieger, 10/23/2015 07:43 AM) → Version 12/72 (Maarten Plieger, 10/23/2015 07:43 AM)

h1. API

h2. Access token API

Generate a token which can be used to access C4I services:
* https://climate4impact.eu/impactportal/ImpactService?service=account&request=generatetoken

List all tokens available for the current user:
* https://climate4impact.eu/impactportal/ImpactService?service=account&request=listtokens

* WMS can be used via <pre>https://climate4impact.eu/impactportal/WMS/<accesstoken>/?</pre>
* WPS can be used via <pre>https://climate4impact.eu/impactportal/WPS/<accesstoken>/?</pre>
* File download requests and OpenDAP requests from the basket can be done via <pre>https://climate4impact.eu/impactportal/DAP/<accesstoken>/<userid>/<file>"</pre>
* Impact service requests can be done via <pre>https://climate4impact.eu/impactportal/ImpactService/<accesstoken>/?</pre>

h2. Basket requests

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

<pre><code class="json">



{ "browser" :

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

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


"children":
[

{ "children" : [ ],
"date" :


"text": "Remote data",

"children": [],

"leaf": false,

"expanded": true,

"date":
"",
"expanded" : true,
"iconCls" : "typeFolder",
"leaf" : false,
"text" : "Remote data"


"iconCls": "typeFolder"

},


{ "children" :

"text": "My data",

"children":
[

{ "dapurl" : "https://localhost/impactportal/DAP/esg-dn1.nsc.liu.se.esgf-idp.openid.maartenplieger/INTER_OPER_R___RD3_____L3__20100101T000000_20100201T000000_0004.nc",
"date" : "2014-06-06 14:31:23Z",
"filesize" :


"id": "INTER_OPER_R___RD3_____L3__20100101T000000_20100201T000000_0004.nc",

"index": 1,

"filesize":
"611.573K",
"hasdap" :


"text": "INTER_OPER_R___RD3_____L3__20100101T000000_20100201T000000_0004.nc",

"hashttp":
true,
"hashttp" :


"hasdap":
true,
"httpurl" :


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


"leaf": true,

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

"type": "file",

"iconCls":
"typeOF",
"id" : "INTER_OPER_R___RD3_____L3__20100101T000000_20100201T000000_0004.nc",
"index" : 1,
"leaf" : true,
"text" : "INTER_OPER_R___RD3_____L3__20100101T000000_20100201T000000_0004.nc",
"type" : "file"


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

},


{ "dapurl" : "https://localhost/impactportal/DAP/esg-dn1.nsc.liu.se.esgf-idp.openid.maartenplieger/tasmax_day_CNRM-CM5_historical_r1i1p1_1890.nc",
"date" : "2015-10-23 09:37:33Z",
"filesize" :


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

"index": 2,

"filesize":
"47.867M",
"hasdap" :


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

"hashttp":
true,
"hashttp" :


"hasdap":
true,
"httpurl" :


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


"leaf": true,

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

"type": "file",

"iconCls":
"typeOF",
"id" : "tasmax_day_CNRM-CM5_historical_r1i1p1_1890.nc",
"index" : 2,
"leaf" : true,
"text" : "tasmax_day_CNRM-CM5_historical_r1i1p1_1890.nc",
"type" : "file"


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

}


],
"date" :


"leaf": false,

"expanded": true,

"date":
"",
"expanded" : true,
"iconCls" : "typeFolder",
"leaf" : false,
"text" : "My data"


"iconCls": "typeFolder"

}


],
"leaf" :


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


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


}



</code>
</pre>

h2. WMS requests

h2. OpenDAP requests