From 023a5b4bb9693bd633b4c3b1f757effc7933b731 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Tue, 15 Dec 2009 16:01:57 +0100 Subject: README typos fixed --- README | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/README b/README index 7dd464f..4cf5228 100644 --- a/README +++ b/README @@ -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) -- cgit v1.2.3