summaryrefslogtreecommitdiff
path: root/api/compound.json
blob: bfd81a2fcbcd7054d5753d66b130a72d86fd600e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
    "swagger": "2.0",
    "info": {
        "version": "5.0.0pre2",
        "title": "OpenTox Compound Service",
        "description": "Compounds component for the OpenTox framework"
    },
    "host": "enm.in-silico.ch",
    "schemes": [
        "https"
    ],
    "paths": {
        "/compound": {
            "head": {
                "tags": [
                    "compound"
                ],
                "description": "for service check",
                "responses": {
                    "200": {
                        "$ref": "#/responses/200"
                    },
                    "503": {
                        "$ref": "#/responses/503"
                    }
                }
            }
        },
        "/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": [
                            "chemical/x-daylight-smiles",
                            "chemical/x-inchi",
                            "chemical/x-mdl-sdfile",
                            "chemical/x-mdl-molfile",
                            "image/png",
                            "text/html"
                        ]
                    }
                ],
                "produces": [
                    "chemical/x-daylight-smiles",
                    "chemical/x-inchi",
                    "chemical/x-mdl-sdfile",
                    "chemical/x-mdl-molfile",
                    "image/png",
                    "text/html"
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    },
                    "400": {
                        "description": "Bad Request"
                    }
                }
            }
        },
        "/compound/{InChI}/image": {
            "get": {
                "tags": [
                    "compound"
                ],
                "description": "Get compound representation",
                "parameters": [
                    {
                        "$ref": "#/parameters/InChI"
                    }
                ],
                "produces": [
                    "image/png"
                ],
                "responses": {
                    "200": {
                        "$ref": "#/responses/200"
                    },
                    "400": {
                        "$ref": "#/responses/400"
                    },
                    "404": {
                        "$ref": "#/responses/404"
                    }
                }
            }
        }
    },
    "parameters": {
        "InChI": {
            "name": "InChI",
            "in": "path",
            "description": "InChI String",
            "required": true,
            "type": "string"
        }
    },
    "responses": {
        "200": {
            "description": "OK"
        },
        "400": {
            "description": "Bad Request"
        },
        "404": {
            "description": "Resource Not Found"
        },
        "503": {
            "description": "Service Unavailable"
        }
    },
    "tags": [
        {
            "name": "compound",
            "description": "Compound service"
        }
    ]
}