Mirror
Go to file
djoumbou 0b3726be7e README.md edited online with Bitbucket 2014-07-10 02:21:44 +00:00
lib Created a lib directory and added entity_resource.rb as well as query_resource.rb. 2014-07-09 15:22:43 -06:00
README.md README.md edited online with Bitbucket 2014-07-10 02:21:44 +00:00
contributors.txt Initial commit with contributors 2014-06-19 21:18:18 -06:00

README.md

ClassyFire 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.

What is this repository for?

How do I get set up?

  • Summary of set up
  • Configuration
  • Dependencies
  • Database configuration
  • How to run tests
  • Deployment instructions

Contribution guidelines

  • Writing tests
  • Code review
  • Other guidelines

Endpoints

##1. Entities

###GET/entities

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.

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/xml" -H "Content-Type: application/xml" -X GET http://classyfire.wishartlab.com/entities/LABTWGUMFABVFG-ONEGZZNKSA-N.xml

Directory Structure

  • lib

Who do I talk to?

  • Repo owner or admin
  • Other community or team contact