diff options
author | rautenberg <rautenberg@in-silico.ch> | 2015-10-19 18:53:32 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2015-10-19 18:53:32 +0200 |
commit | 5273435643e63811c07bba0d6cf73b273b75e07a (patch) | |
tree | 07c33b6fd898b0a23498d9e82363799fbe49cfe1 /api | |
parent | f69788a9172d0cfb6b7af14cb467e009f0fbff01 (diff) |
API: GET Compound
Diffstat (limited to 'api')
-rw-r--r-- | api/api.json | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/api/api.json b/api/api.json index 98fabf0..80d742e 100644 --- a/api/api.json +++ b/api/api.json @@ -235,6 +235,54 @@ } } }, + "/compound/{InChI}": { + "get": { + "tags": [ + "compound" + ], + "description": "Get compound representation", + "parameters": [ + { + "$ref": "#/parameters/InChI" + }, + { + "name": "accept", + "in": "header", + "description": "requested Content-type", + "required": true, + "type": "string", + "enum": [ + "application/json", + "chemical/x-daylight-smiles", + "chemical/x-inchi", + "chemical/x-mdl-sdfile", + "chemical/x-mdl-molfile", + "image/png", + "image/svg+xml", + "text/plain" + ] + } + ], + "produces": [ + "application/json", + "chemical/x-daylight-smiles", + "chemical/x-inchi", + "chemical/x-mdl-sdfile", + "chemical/x-mdl-molfile", + "image/png", + "image/svg+xml", + "text/plain" + ], + "responses": { + "200": { + "$ref": "#/responses/200" + }, + "400": { + "$ref": "#/responses/400" + } + } + } + }, "/api/api.json": { "get": { "tags": [ @@ -265,6 +313,13 @@ "description": "model id", "required": true, "type": "string" + }, + "InChI": { + "name": "InChI", + "in": "path", + "description": "InChI String", + "required": true, + "type": "string" } }, "responses": { @@ -303,6 +358,10 @@ { "name": "model", "description": "Lazar Model Service" + }, + { + "name": "compound", + "description": "Compound" } ] }
\ No newline at end of file |