diff options
author | Christoph Helma <helma@in-silico.de> | 2009-12-14 17:12:19 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2009-12-14 17:12:19 +0100 |
commit | a06bac44826efbfc9df613f9b2d15830002a5328 (patch) | |
tree | f7105a5172113797a27e05e3d29dc651ccd9ce14 | |
parent | 8d0810394819940f173368d02ff999c17f07ea81 (diff) |
REST API and examples added to README
-rw-r--r-- | README | 34 |
1 files changed, 32 insertions, 2 deletions
@@ -3,8 +3,38 @@ OpenTox Dataset * An OpenTox REST Webservice * Stores associations between compounds and features in datasets -* Implements the OpenTox dataset API +* Implements the OpenTox compound API 1.1 (http://opentox.org/dev/apis/api-1.1/dataset) -Documentation: Source code (application.rb) +REST operations: + +Get a list of datasets GET / - List of dataset URIs 200,400,404 +Get a dataset GET /{id} - Dataset representation 200,400,404 +Upload a dataset POST / Dataset representation Dataset URI 200,400,404 +Delete a dataset DELETE /{id} - - 200,404 +Delete all datasets DELETE / - - 200,404 + +Supported MIME formats (http://chemical-mime.sourceforge.net/): + + * application/rdf+xml (default): read/ OWL-DL + +Examples: + +Get a list of all datasets: + + curl http://webservices.in-silico.ch/test/dataset + +Upload a dataset: + + curl -X POST -H "Content-Type:application/rdf+xml" --data-binary @{my_rdf_file} http://webservices.in-silico.ch/test/dataset + +Get a dataset representation: + + curl http://webservices.in-silico.ch/test/dataset/{id} + +Delete a dataset: + + curl -X DELETE http://webservices.in-silico.ch/test/dataset/{id} + +Installation: http://wiki.github.com/helma/opentox-documentation/installation-of-opentox-webservices Copyright (c) 2009 Christoph Helma. See LICENSE for details. |