Difference between revisions of "Compound"
Jump to navigation
Jump to search
(→GET) |
|||
Line 49: | Line 49: | ||
''text/csv'' (optional parameter "delimiter", default value: ",") | ''text/csv'' (optional parameter "delimiter", default value: ",") | ||
''chemical/x-daylight-smiles'' | |||
''chemical/x-inchi'' | |||
''chemical/x-mdl-molfile'' | |||
|The compound identified by the URI. | |The compound identified by the URI. | ||
Line 59: | Line 65: | ||
500 - Internal Server Error | 500 - Internal Server Error | ||
|} | |} | ||
== POST == | == POST == |
Revision as of 12:09, 18 January 2016
REST Operations
GET
URI | Parameter | Accept Types | Result | Status Codes |
---|---|---|---|---|
/compound | text/html
application/json text/plain text/csv (optional parameter "delimiter", default value: ",") |
List of all compounds of all packages that the user has permission to read. | 200 - OK
500 - Internal Server Error | |
/package/<id>/compound | text/html
application/json text/plain text/csv (optional parameter "delimiter", default value: ",") |
List of all compounds of the package given by the URI. | 200 - OK
401 - Unauthorized 500 - Internal Server Error | |
/package/<id>/compound/<id> | text/html
application/json text/plain text/csv (optional parameter "delimiter", default value: ",") chemical/x-daylight-smiles chemical/x-inchi chemical/x-mdl-molfile |
The compound identified by the URI. | 200 - OK
401 - Unauthorized 404 - Not Found 500 - Internal Server Error |
POST
URI | Parameter | Accept Types | Result | Status Codes |
---|---|---|---|---|
/compound | compoundSmiles
compoundName compoundDescription |
Create a new Compound in the default package. The redirect points to the URI of the new Compound. | 303 - See Other
500 - Internal Server Error | |
/package/<id>/compound | compoundSmiles
compoundName compoundDescription |
Create a new Compound in the package given by the URI. The redirect points to the URI of the new Compound. | 303 - See Other
401 - Unauthorized 500 - Internal Server Error | |
/package/<id>/compound/<id> | compoundSmiles | Modify the compound identified by the URI. | 200 - OK | |
compoundName | 401 - Unauthorized | |||
compoundDescription | 404 - Not Found | |||
scenario - URI of the scenario | 500 - Internal Server Error |
DELETE
URI | Parameter | Accept Types | Result | Status Codes |
---|---|---|---|---|
/compound | Delete all compounds the user has write access on. | 303 - See Other
500 - Internal Server Error | ||
/package/<id>/compound | Delete all compounds in the package given by the URI. | 303 - See Other
401 - Unauthorized 500 - Internal Server Error | ||
/package/<id>/compound/<id> | Delete the compound identified by the URI. | 303 - See Other | ||
401 - Unauthorized | ||||
404 - Not Found | ||||
500 - Internal Server Error |
PUT
Not Implemented.