Project

General

Profile

API » History » Version 10

Maarten Plieger, 10/23/2015 07:41 AM

1 1 Maarten Plieger
h1. API
2 1 Maarten Plieger
3 1 Maarten Plieger
h2. Access token API
4 1 Maarten Plieger
5 1 Maarten Plieger
Generate a token which can be used to access C4I services:
6 1 Maarten Plieger
* https://climate4impact.eu/impactportal/ImpactService?service=account&request=generatetoken
7 1 Maarten Plieger
8 1 Maarten Plieger
List all tokens available for the current user:
9 1 Maarten Plieger
* https://climate4impact.eu/impactportal/ImpactService?service=account&request=listtokens
10 1 Maarten Plieger
11 3 Maarten Plieger
* WMS can be used via <pre>https://climate4impact.eu/impactportal/WMS/<accesstoken>/?</pre>
12 4 Maarten Plieger
* WPS can be used via <pre>https://climate4impact.eu/impactportal/WPS/<accesstoken>/?</pre>
13 4 Maarten Plieger
* File download requests and OpenDAP requests from the basket can be done via <pre>https://climate4impact.eu/impactportal/DAP/<accesstoken>/<userid>/<file>"</pre>
14 4 Maarten Plieger
* Impact service requests can be done via <pre>https://climate4impact.eu/impactportal/ImpactService/<accesstoken>/?</pre>
15 1 Maarten Plieger
16 5 Maarten Plieger
h2. Basket requests
17 1 Maarten Plieger
18 2 Maarten Plieger
* Get overview of all files in the users basket: service=basket&request=getoverview, 
19 8 Maarten Plieger
** e.g. <pre>https://climate4impact.eu/impactportal/basket?&service=basket&request=getoverview&</pre>
20 8 Maarten Plieger
** For commandline access with an access token: <pre>https://climate4impact.eu/impactportal/basket/<accesstoken>/?&service=basket&request=getoverview&</pre>
21 7 Maarten Plieger
22 10 Maarten Plieger
<pre><code class="json">
23 10 Maarten Plieger
{"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?"}
24 10 Maarten Plieger
</code>
25 9 Maarten Plieger
</pre>
26 9 Maarten Plieger
27 7 Maarten Plieger
h2. WMS requests
28 7 Maarten Plieger
29 7 Maarten Plieger
h2. OpenDAP requests