README.md edited online with Bitbucket

This commit is contained in:
djoumbou 2014-07-10 04:18:09 +00:00
parent 288cf6386d
commit 480afaab1f
1 changed files with 8 additions and 5 deletions

View File

@ -33,9 +33,9 @@
> >
> >A chemical compound's classification can be retrieved in the JSON or XML format. The compound's information is accessed via the InChIkey as show in the following examples. In this example, the entity has the InChIKey=LABTWGUMFABVFG-ONEGZZNKSA-N.
> > >
> > >curl -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://classyfire.wishartlab.com/entities/LABTWGUMFABVFG-ONEGZZNKSA-N.json
> > >curl -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://classyfire.wishartlab.com/entities/BDAGIHXWWSANSR-UHFFFAOYSA-N.json
> > >
> > >curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET http://classyfire.wishartlab.com/entities/LABTWGUMFABVFG-ONEGZZNKSA-N.xml
> > >curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET http://classyfire.wishartlab.com/entities/BDAGIHXWWSANSR-UHFFFAOYSA-N.xml
> ##2. Query##
@ -46,7 +46,7 @@
> >
> >###POST###
> >A query can be submitted using the POST method as demonstrated in the following example.
> > >curl -d "query[label]=curl_test&query[query_input]=ID1,C(=O)O&submit=Submit query" "http://classyfire.wishartlab.com/queries/"
> > >curl -d "query[label]=curl_test&query[query_input]=ID1,C(=O)O&submit=Submit query" http://classyfire.wishartlab.com/queries/
> >where the parameters are:
> >*The query label: curl_test
> >*The entity identifier: ID1
@ -56,8 +56,11 @@
> >
> >**/queries/{query_id}**
> >
> > The classification results can be retrieved via a GET method.
> > >curl -H "Accept: application/json" -H "Content-Type: application/json" -X GET "http://localhost:3000/queries/88.json"
> >The classification results can be retrieved via a GET method.
> > >curl -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://classyfire.wishartlab.com/queries/88.json
> >where the query id is 88 and the result is encoded in the JSON format.
> >The result can also be returned in the XML format.
> > >curl -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://classyfire.wishartlab.com/queries/88.xml
# **Directory Structure** #