diff options
author | Christoph Helma <helma@in-silico.de> | 2009-12-15 16:01:57 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2009-12-15 16:01:57 +0100 |
commit | 023a5b4bb9693bd633b4c3b1f757effc7933b731 (patch) | |
tree | d43eb350785dd9b3e6b9df9ded42877c9e128118 | |
parent | 971818ee836e61dd667098ab600b9f5ce5d44987 (diff) |
README typos fixed
-rw-r--r-- | README | 20 |
1 files changed, 12 insertions, 8 deletions
@@ -7,10 +7,11 @@ OpenTox model REST operations: -Get a list of all lazar models GET / - List of model URIs 200 -Get the representation of a lazar model GET /{id} - Model representation 200,404 -Predict a compound POST /{id} compound_uri Prediction representation 200,404,500 -Delete a model DELETE /{id} - - 200,404 +Get a list of all lazar models GET / - List of model URIs 200 +Get the representation of a lazar model GET /{id} - Model representation 200,404 +Predict a compound POST /{id} compound_uri, Prediction representation 200,404,500 + type (optional) +Delete a model DELETE /{id} - - 200,404 Supported MIME formats (http://chemical-mime.sourceforge.net/): @@ -20,16 +21,19 @@ Supported MIME formats (http://chemical-mime.sourceforge.net/): Examples: List all lazar models - curl http://webservices.in-silico.ch/model + curl http://webservices.in-silico.ch/model Get the representation of a lazar model - curl -H "Accept:application/rdf+xml" http://webservices.in-silico.ch/model/{id} + curl -H "Accept:application/rdf+xml" http://webservices.in-silico.ch/test/model/{id} Predict a compound - curl -X POST -d compound_uri={compound_uri} http://webservices.in-silico.ch/model/{id} + curl -X POST -d compound_uri={compound_uri} http://webservices.in-silico.ch/test/model/{id} + +Predict a compound and get the result as YAML (setting the Accept header does not work with Content-Type:application/x-www-form-urlencoded to submit parameters) + curl -X POST -d compound_uri={compound_uri} -d type=application/x-yaml http://webservices.in-silico.ch/test/model/{id} Delete a model - curl -X DELETE http://webservices.in-silico.ch/model/{id} + curl -X DELETE http://webservices.in-silico.ch/model/{id} More documentation: Source code (application.rb, lazar.rb) |