README.md edited online with Bitbucket
This commit is contained in:
parent
288cf6386d
commit
480afaab1f
13
README.md
13
README.md
|
@ -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.
|
> >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##
|
> ##2. Query##
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
> >
|
> >
|
||||||
> >###POST###
|
> >###POST###
|
||||||
> >A query can be submitted using the POST method as demonstrated in the following example.
|
> >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:
|
> >where the parameters are:
|
||||||
> >*The query label: curl_test
|
> >*The query label: curl_test
|
||||||
> >*The entity identifier: ID1
|
> >*The entity identifier: ID1
|
||||||
|
@ -56,8 +56,11 @@
|
||||||
> >
|
> >
|
||||||
> >**/queries/{query_id}**
|
> >**/queries/{query_id}**
|
||||||
> >
|
> >
|
||||||
> > The classification results can be retrieved via a GET method.
|
> >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"
|
> > >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** #
|
# **Directory Structure** #
|
||||||
|
|
Loading…
Reference in New Issue