... | ... | @@ -29,11 +29,11 @@ GET with "Accept: text/html" on each resource returns HTML with some useful info |
|
|
|
|
|
GET on \<service endpoint URL\>/rest returns list of supported versions. The XML response is like:
|
|
|
<pre>
|
|
|
<versions>
|
|
|
<version>0.1</version>
|
|
|
<version>0.2</version>
|
|
|
<version>0.3</version>
|
|
|
</versions>
|
|
|
\<versions>
|
|
|
\<version\>0.1\</version\>
|
|
|
\<version\>0.2\</version\>
|
|
|
\<version\>0.3\</version\>
|
|
|
\</versions\>
|
|
|
</pre>
|
|
|
The JSON is:
|
|
|
<pre>
|
... | ... | @@ -49,7 +49,7 @@ The JSON is: |
|
|
Access to general functionality of the CE through URL.
|
|
|
\<base URL\>
|
|
|
Operations:
|
|
|
- GET - retrieve generic information about cluster (consider filtering through URL options), maybe shall include references (relative URLs) to underlying resources.
|
|
|
- GET - retrieve generic information about cluster (consider filtering through URL options), maybe shall include references (relative URLs) to underlying resources. The information is GLUE2 XML document. For JSON response it is automatically converted into JSON with top node removed and attributes ignored.
|
|
|
- HEAD - supported.
|
|
|
- PUT,POST,DELETE - not supported.
|
|
|
|
... | ... | @@ -57,11 +57,32 @@ Operations: |
|
|
## Delegation functionality.
|
|
|
\<base URL\>/delegations
|
|
|
Operations:
|
|
|
- GET - retrieves list of delegations belonging to authenticated user (consider paging through URL options) as text/html, application/xml or application/json.
|
|
|
- GET - retrieves list of delegations belonging to authenticated user (consider paging through URL options). The XML response is:
|
|
|
<pre>
|
|
|
\<delegations\>
|
|
|
\<delegation\>
|
|
|
\<id\>1234567890abcdef\</id\>
|
|
|
\</delegation\>
|
|
|
\<delegation\>
|
|
|
\<id\>fedcba0987654321\</id\>
|
|
|
\</delegation\>
|
|
|
\</delegations\>
|
|
|
</pre>
|
|
|
The JSON is:
|
|
|
<pre>
|
|
|
{
|
|
|
"delegation":{
|
|
|
"id":"1234567890abcdef"
|
|
|
},
|
|
|
"delegation":{
|
|
|
"id":"fedcba0987654321"
|
|
|
}
|
|
|
}
|
|
|
</pre>
|
|
|
- HEAD - supported.
|
|
|
- PUT - not supported.
|
|
|
- POST - initiates delegation, no options or body expected. This is a 2 step process. Step 1 generates pair of private/public keys on server side and communicates X.509 certificate request to the client. Response is 201 and contains certificate request of application/x-pem-file type and URL of delegation in Location header with assigned delegation id.
|
|
|
- DELETE - removes all delegations belonging to authenticated user.
|
|
|
- DELETE - not supported.
|
|
|
|
|
|
|
|
|
## Delegation as resource
|
... | ... | @@ -81,7 +102,7 @@ Operations: |
|
|
- HEAD - supported.
|
|
|
- PUT - not supported.
|
|
|
- POST - initiates new job. Without URL options body contains job description in whatever format is supported (currently probably application/xml or applicaton/rsl). Response is 201 with Location header referring to created job resource and body contains minimal information about job.
|
|
|
- DELETE - initiates clear request for all jobs belonging to authenticated user.
|
|
|
- DELETE - not supported
|
|
|
|
|
|
|
|
|
## Job as resource.
|
... | ... | |