classyfire_api/README.md

54 lines
1.8 KiB
Markdown
Raw Normal View History

2014-07-09 23:02:34 +01:00
[**ClassyFire**](http://classyfire.wishartlab.com) is a resource that allows you to automatically classify any chemical compound based on its structure. This is the repository for the ClassyFire API allows you to send requests to and pull information from the ClassyFire web server.
2014-07-09 22:41:04 +01:00
2014-07-09 23:43:34 +01:00
# **What is this repository for?** #
2014-07-09 22:41:04 +01:00
* Quick summary
* Version
* [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
2014-07-09 23:43:34 +01:00
# **How do I get set up?** #
2014-07-09 22:41:04 +01:00
* Summary of set up
* Configuration
* Dependencies
* Database configuration
* How to run tests
* Deployment instructions
2014-07-09 23:43:34 +01:00
# **Contribution guidelines** #
2014-07-09 22:41:04 +01:00
* Writing tests
* Code review
* Other guidelines
2014-07-09 23:32:43 +01:00
2014-07-09 23:42:11 +01:00
# **Endpoints** #
2014-07-10 03:47:02 +01:00
> ##1. Entities##
> >Chemical compounds are represented by the Entity model, through which one can access the compound's structure-based classification.
> >###GET /entities###
2014-07-10 03:21:44 +01:00
> >You can retrieve a chemical compound's classification 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.
2014-07-10 00:07:39 +01:00
> > >
2014-07-10 03:21:44 +01:00
> > >curl -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://classyfire.wishartlab.com/entities/LABTWGUMFABVFG-ONEGZZNKSA-N.json
2014-07-10 00:07:39 +01:00
> > >
2014-07-10 03:21:44 +01:00
> > >curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET http://classyfire.wishartlab.com/entities/LABTWGUMFABVFG-ONEGZZNKSA-N.xml
2014-07-10 00:07:39 +01:00
2014-07-10 03:47:02 +01:00
> ##1. Queries##
> >The Query model represents a list of chemical structures to be classified. The query object can be submitted via a POST request. The classification results can be retrieved via a GET request.
> >###POST /Queries###
> >
> >
2014-07-09 23:43:34 +01:00
# **Directory Structure** #
2014-07-09 22:41:04 +01:00
2014-07-09 23:39:28 +01:00
* lib
2014-07-09 23:35:05 +01:00
2014-07-09 23:43:34 +01:00
# **Who do I talk to?** #
2014-07-09 22:41:04 +01:00
* Repo owner or admin
* Other community or team contact