Ontological term broker/Requests

Request objects are returned by GET to the /requests URL, or to the URLs of individual requests. Each request object conforms to the Request JSON Schema.

An example of a Request object satisfying this schema is:

{  "provisional_term":"/request/22905fdb9a13350da24424e9f512cbee", "ontology_term":null, "search_text":"APP 770 ", "context":"test test test.", "comment":null, "provenance":null, "status":"PENDING", "creator":{"href":"/user/1/","text":"anonymous"}, "modified_by":{"href":"/user/1/","text":"anonymous"}, "date_submitted":"2010-09-23", "ontology":{"href":"/ontology/1/","text":"PRO"}, "metadata":[ {"metadata_key":"type", "metadata_value":"protein", "created_by":{"href":"/user/1/","text":"anonymous"}, "created_on":"2010-09-23"}, {"metadata_key":"organism", "metadata_value":"human", "created_by":{"href":"/user/1/","text":"anonymous"}, "created_on":"2010-09-23"} ] }

New requests are created by POSTing a NewRequest object to the /requests URL.

Each request contains a provisional_term field, which is an href to the request itself; calling GET on that URL will return the JSON object representing the request.

Requests may be UPDATED, or JUDGED, by posting a modifed version of the Request object to the request's URL. This modified (update) object must conform to the UpdatedRequest schema.