Policy
From ToxBank API Wiki
(Difference between revisions)
m |
m |
||
Line 1: | Line 1: | ||
TBD | TBD | ||
− | |||
+ | = Verify (authorize) = | ||
− | / | + | # OpenTox [[OpenTox_API_1.2_A%26A]] or / and |
+ | # wrapper for the [[OpenTox_API_1.2_A%26A]]) | ||
− | curl -X GET /policy -d "uri=the-uri-to-be-verified" | + | === cURL example === |
+ | curl -X GET /policy -d "uri=the-uri-to-be-verified" | ||
input media: application/x-www-form-urlencoded | input media: application/x-www-form-urlencoded | ||
− | |||
+ | = Create new policy = | ||
− | ---- | + | {{REST Operations |
− | + | |REST_op_description=Creates a policy | |
− | curl -X POST /authorize \ | + | |REST_op_method=POST |
− | -d "uri=the-uri-to-be-verified" \ | + | |REST_op_uri=/policy |
− | -d "type=user|group" \ | + | |REST_op_params=uri, user/group, methods (see example) or the XML as defined by OpenSSO |
− | -d "name=user or group name" \ | + | |REST_op_mime_input=application/x-www-form-urlencoded, application/xml |
− | -d "GET=on| " \ | + | |REST_op_result=Task URI, when complete - URI of the new policy, e.g. /policy/ABCDEF |
− | -d "POST=on| " \ | + | |REST_op_mime_output=text/uri-list |
− | -d "PUT=on| " \ | + | |REST_op_status=200,202,400,401,402,403 |
− | -d "DELETE=on| " \ | + | }} |
− | -d "Content-type=application/x-www-form-urlencoded" \ | + | |
− | + | ||
+ | === cURL example === | ||
+ | curl -X POST /authorize \ | ||
+ | -d "uri=the-uri-to-be-verified" \ | ||
+ | -d "type=user|group" \ | ||
+ | -d "name=user or group name" \ | ||
+ | -d "GET=on| " \ | ||
+ | -d "POST=on| " \ | ||
+ | -d "PUT=on| " \ | ||
+ | -d "DELETE=on| " \ | ||
+ | -d "Content-type=application/x-www-form-urlencoded" \ |
Revision as of 06:39, 16 September 2011
TBD
Contents |
Verify (authorize)
- OpenTox OpenTox_API_1.2_A&A or / and
- wrapper for the OpenTox_API_1.2_A&A)
cURL example
curl -X GET /policy -d "uri=the-uri-to-be-verified"
input media: application/x-www-form-urlencoded
Create new policy
Description | Creates a policy |
---|---|
Resource | [[]] |
Method | POST |
URI | /policy |
Parameters | uri, user/group, methods (see example) or the XML as defined by OpenSSO |
Header Parameters | |
Media Type (input) | application/x-www-form-urlencoded, application/xml |
Results | Task URI, when complete - URI of the new policy, e.g. /policy/ABCDEF |
Media Type (output) | text/uri-list |
Status code | 200,202,400,401,402,403 |
cURL example
curl -X POST /authorize \ -d "uri=the-uri-to-be-verified" \ -d "type=user|group" \ -d "name=user or group name" \ -d "GET=on| " \ -d "POST=on| " \ -d "PUT=on| " \ -d "DELETE=on| " \ -d "Content-type=application/x-www-form-urlencoded" \
Facts about PolicyRDF feed
Acts on | |
Has output media type | text/uri-list + |
Has status code | 200,202,400,401,402,403 + |