From 037e9dded9dc0e0708ebacc7a8e987fcf1cc9d59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20G=C3=BCtlein?= Date: Tue, 12 Jan 2010 11:14:02 +0100 Subject: added report examples and example tests, new module Validation --- EXAMPLES | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 95 insertions(+), 1 deletion(-) (limited to 'EXAMPLES') diff --git a/EXAMPLES b/EXAMPLES index cdf2b47..1f56b99 100644 --- a/EXAMPLES +++ b/EXAMPLES @@ -4,7 +4,7 @@ API-Definition see http://opentox.org/dev/apis/api-1.1/Validation -API-Examples +API-Examples Validation =================================================================== how to @@ -141,3 +141,97 @@ result example (accept-header: text/uri-list) +API-Examples Reports +=================================================================== + + +get list of available report types +------------------------------------------------------------------- + +>>> curl /report + +result example (accept-header: application/rdf-xml) +<<< not yet supported + +result example (accept-header: text/uri-list) +<<< /report/validation +<<< /report/crossvalidation +<<< /report/algorithm_comparison + + +get list of available reports of type validation +------------------------------------------------------------------- + +>>> curl ot.validation.de/report/validation + +result example (accept-header: application/rdf-xml) +<<< not yet supported + +result example (accept-header: text/uri-list) +<<< /report/validation/ +<<< /report/validation/id_i +<<< /report/validation/id_j + + +get validation report +------------------------------------------------------------------- + +>>> curl /report/validation/ + +Supported formats (accept-headers): +* "text/xml" content of report in docbook-article format +* "text/html" report formated with default docbook-article-xsl + +Hint: Visit /report/validation/ with a browser to see the report in html format + + +create validation report from validation +------------------------------------------------------------------- + +>>> curl -X POST -d validation_uris="/" \ + ot.validation.de/report/validation + +result example (accept-header: application/rdf-xml) +<<< not yet supported + +result example (accept-header: text/uri-list) +<<< /report/validation/id_i + + +get list of available reports of type crossvalidation +------------------------------------------------------------------- + +>>> curl /report/crossvalidation + +result example (accept-header: application/rdf-xml) +<<< not yet supported + +result example (accept-header: text/uri-list) +<<< /report/crossvalidation/ +<<< /report/crossvalidation/id_i +<<< /report/crossvalidation/id_j + + +get crossvalidation report +------------------------------------------------------------------- + +>>> curl /report/crossvalidation/ + +Supported formats (accept-headers): +* "text/xml" content of report in docbook-article format +* "text/html" report formated with default docbook-article-xsl + +Hint: Visit /report/crossvalidation/ with a browser to see the report in html format + + +create crossvalidation report from crossvalidation +------------------------------------------------------------------- + +>>> curl -X POST -d validation_uris="/crossvalidation/" \ + ot.validation.de/report/crossvalidation + +result example (accept-header: application/rdf-xml) +<<< not yet supported + +result example (accept-header: text/uri-list) +<<< /report/crossvalidation/id_i \ No newline at end of file -- cgit v1.2.3