API Protocol:Upload
From ToxBank API Wiki
(Difference between revisions)
m |
m |
||
Line 4: | Line 4: | ||
|REST_op_uri=/protocol | |REST_op_uri=/protocol | ||
|REST_op_params=TBD, file content in multipart web form, with predefined metadata | |REST_op_params=TBD, file content in multipart web form, with predefined metadata | ||
+ | |REST_header_param=subjectid:SECURITY-TOKEN | ||
|REST_op_mime_input=multipart web form - application/x-www-form-urlencoded, RDF, JSON | |REST_op_mime_input=multipart web form - application/x-www-form-urlencoded, RDF, JSON | ||
|REST_op_result=URI of the new protocol , e.g. /protocol/P123 | |REST_op_result=URI of the new protocol , e.g. /protocol/P123 | ||
Line 9: | Line 10: | ||
|REST_op_status=200,400,401,402,403 | |REST_op_status=200,400,401,402,403 | ||
}} | }} | ||
− | |||
[[http://api.toxbank.net/index.php/Special:FormEdit/REST_OperationsForm/API_Protocol:Upload Edit ]] | [[http://api.toxbank.net/index.php/Special:FormEdit/REST_OperationsForm/API_Protocol:Upload Edit ]] |
Revision as of 16:30, 15 September 2011
Description | Uploads a protocol |
---|---|
Resource | [[]] |
Method | POST |
URI | /protocol |
Parameters | TBD, file content in multipart web form, with predefined metadata |
Header Parameters | subjectid:SECURITY-TOKEN |
Media Type (input) | multipart web form - application/x-www-form-urlencoded, RDF, JSON |
Results | URI of the new protocol , e.g. /protocol/P123 |
Media Type (output) | text/uri-list |
Status code | 200,400,401,402,403 |
Facts about API Protocol:UploadRDF feed
Acts on | |
Has output media type | text/uri-list + |
Has status code | 200,400,401,402,403 + |