-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathopenapi-test2.json
More file actions
173 lines (173 loc) · 5.21 KB
/
openapi-test2.json
File metadata and controls
173 lines (173 loc) · 5.21 KB
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{ "@context": {
"x-orn": "http://openrisknet.org/schema/",
"x-orn-@id": "@id",
"x-orn-@type":"@type",
"title": "x-orn:title",
"info": "x-orn:info",
"paths":
{ "@id": "x-orn:paths",
"@container": "@index"
},
"description": "x-orn:description",
"get": "x-orn:Get",
"smiles": "x-orn:Smiles",
"parameters": "x-orn:OperationParameters",
"responses":
{"@id": "x-orn:OperationResponses",
"@container": "@index"
},
"properties": "x-orn:Properties",
"content":
{"@id": "x-orn:Content",
"@container": "@index"
},
"schema": "x-orn:Schema"
},
"openapi": "3.0.0",
"x-orn-@id": "https://chemidconvert/v2",
"x-orn-@type": "x-orn:Service",
"servers": [
{
"url": "https://chemidconvert/v2"
}
],
"info": {
"title": "ChemIdConvert - Chemical identifier conversion service",
"description": "This REST Api allows you to submit chemical identifiers in one format and translate it into another format (e.g. SMILES -> InChi)",
"version": "1.0.0"
},
"paths": {
"/molWeight": {
"x-orn-@id": "https://chemidconvert/v2/molWeight",
"x-orn-@type": "x-orn:Prediction",
"x-orn:expects": {
"x-orn-@id": "x-orn:Compound"
},
"x-orn:returns": {
"x-orn-@id": "x-orn:molecularMass"
},
"get": {
"summary": "Returns the molecular weight (calculated with rdkit)",
"parameters": [
{
"name": "smiles",
"x-orn-@type": "x-orn:Smiles",
"in": "query",
"description": "Compound structure notated using SMILES notation",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "The molecular weight (caluclated with rdkit)",
"content": {
"application/json": {
"schema": {
"type": "object",
"x-orn-@context": "https://chemidconvert/v2/context.json",
"x-orn-@type": "x-orn:Prediction",
"properties": {
"smiles": {
"x-orn-@type": "x-orn:Smiles",
"type": "string",
"description": "Compound structure notated using (canonical) SMILES notation"
},
"molWeight": {
"x-orn-@type": "x-orn:Prediction",
"type": "number",
"description": "The molecular weight (caluclated with rdkit)"
}
}
}
}
}
},
"default": {
"description": "Unexpected error",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
"/smiles/to/inchi": {
"x-orn-@id": "https://chemidconvert/v2/smiles/to/inchi",
"x-orn-@type": "x-orn:Conversion",
"x-orn:expects": {
"x-orn-@id": "x-orn:Compound"
},
"x-orn:returns": {
"x-orn-@id": "x-orn:Compound"
},
"get": {
"summary": "Converts from a SMILES format into InChI format",
"description": "Converts from a SMILES format into InChI format. Only a single match is returned if there is an ambiguity in the conversion. The conversion is performed in process via rdkit.\n",
"tags": [
"SMILES, InChI"
],
"parameters": [
{
"name": "smiles",
"in": "query",
"description": "Compound structure notated using SMILES notation",
"required": true,
"x-orn-@type": "x-orn:Smiles",
"schema": {
"type": "string",
"format": "smiles"
}
}
],
"responses": {
"200": {
"description": "The converted InChI string",
"content": {
"application/json": {
"schema": {
"x-orn-@context": "https://chemidconvert/v2/context.json",
"x-orn-@type": "x-orn:Conversion",
"type": "object",
"properties": {
"inchi": {
"x-orn-@type": "x-orn:Inchi",
"type": "string",
"description": "Compound structure notated using InChI notation"
}
}
}
}
}
},
"400": {
"description": "Invalid request (typically a mandatory parameter was missing or malformed)",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
},
"default": {
"description": "Unexpected error",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
}
}
}
}
}