Changes between Version 1 and Version 2 of DownscalingPortal/RESTfulAPI/Climate4Impact


Ignore:
Timestamp:
Mar 24, 2014 10:25:52 AM (8 years ago)
Author:
vegasm
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DownscalingPortal/RESTfulAPI/Climate4Impact

    v1 v2  
    1 === Climate4Impact ===
     1== Climate4Impact ==
     2
     3The Downscaling Portal RESTful API is token based authentication. That means, the user has to include a token in every request.
     4
     5== Access the API ==
     6
     7Climate4Impact has an existing account into the Downscaling Portal. With the credentials provided is very simple to authenticate and get the token
     8
     9== User Administration ==
     10
     11The API allows the manager to create users who have the same experiments as him and this users will be attached to the manager. Thus, users can be added, listed and removed from the DPRA Climate4Impact service.
     12
     13In order to clarify how to use the API quickly, we are going to follow an example step by step.
     14
     15=== 1. Create a new user ===
     16
     17{{{curl -i -H "Accept: application/json" -H "Content-type: application/json" -H "token: your_token" -X POST -d "{\"username\": \"pcmdi9.llnl.gov.openid.vegasm\", \"email\": \"vegasm@unican.es\", \"openID\": \"https://pcmdi9.llnl.gov/openid/vegasm\"}" http://meteo.unican.es/dp/rest/users}}}
     18
     19Response
     20
     21{{{HTTP/1.1 201 Created
     22Date: Mon, 24 Mar 2014 09:08:17 GMT
     23Content-Length: 0
     24Content-Type: text/plain}}}
     25
     26