Policy

From ToxBank API Wiki
Jump to: navigation, search

TBD


Contents

Verify (authorize)

  1. OpenTox OpenTox_API_1.2_A&A or / and
  2. 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 typetext/uri-list  +
Has status code200,202,400,401,402,403  +
Personal tools