1
+ {
2
+ "openapi" : " string" ,
3
+ "info" : {
4
+ "version" : " 3.0.0.2" ,
5
+ "title" : " MyGene.info API" ,
6
+ "description" : " Documentation of the MyGene.info Gene Query web services. Learn more about [MyGene.info](http://mygene.info/)" ,
7
+ "termsOfService" : " http://example.com/terms/" ,
8
+ "contact" : {
9
+ "name" : " Chunlei Wu" ,
10
+ "x-role" : " responsible developer" ,
11
+
12
+ "x-id" : " http://orcid.org/0000-0002-2629-6124"
13
+ },
14
+ "x-accessRestriction" : " none" ,
15
+ "x-maturity" : " production" ,
16
+ "x-implementationLanguage" : " python"
17
+ },
18
+ "externalDocs" : {
19
+ "description" : " Find more info here" ,
20
+ "url" : " https://example.com"
21
+ },
22
+ "x-externalResource" : [
23
+ {
24
+ "x-url" : " http://example.org/api/docs" ,
25
+ "x-type" : " api documentation"
26
+ },
27
+ {
28
+ "x-url" : " https://doi.org/10.1093/nar/gks1114" ,
29
+ "x-type" : " publication" ,
30
+ "x-description" : " BioGPS and MyGene.info: organizing online, gene-centric information"
31
+ },
32
+ {
33
+ "x-url" : " http://twitter.com/mygeneinfo" ,
34
+ "x-type" : " social media"
35
+ }
36
+ ],
37
+ "servers" : [{
38
+ "url" : " http://mygene.info" ,
39
+ "description" : " Development server" ,
40
+ "x-___location" : " California, USA"
41
+ }],
42
+ "tags" : [
43
+ {
44
+ "name" : " http://purl.bioontology.org/ontology/MESH/D005796" ,
45
+ "description" : " Genes"
46
+ }
47
+ ],
48
+ "components" : {
49
+ "schemas" : {
50
+ "Category" : {
51
+ "type" : " object" ,
52
+ "properties" : {
53
+ "id" : {
54
+ "type" : " integer" ,
55
+ "format" : " int64"
56
+ },
57
+ "name" : {
58
+ "type" : " string"
59
+ }
60
+ }
61
+ },
62
+ "Tag" : {
63
+ "type" : " object" ,
64
+ "properties" : {
65
+ "id" : {
66
+ "type" : " integer" ,
67
+ "format" : " int64"
68
+ },
69
+ "name" : {
70
+ "type" : " string"
71
+ }
72
+ }
73
+ }
74
+ },
75
+ "parameters" : {
76
+ "skipParam" : {
77
+ "name" : " skip" ,
78
+ "in" : " query" ,
79
+ "description" : " number of items to skip" ,
80
+ "required" : true ,
81
+ "schema" : {
82
+ "type" : " integer" ,
83
+ "format" : " int32"
84
+ }
85
+ },
86
+ "limitParam" : {
87
+ "name" : " limit" ,
88
+ "in" : " query" ,
89
+ "description" : " max records to return" ,
90
+ "required" : true ,
91
+ "schema" : {
92
+ "type" : " integer" ,
93
+ "format" : " int32"
94
+ }
95
+ }
96
+ },
97
+ "responses" : {
98
+ "NotFound" : {
99
+ "description" : " Entity not found."
100
+ },
101
+ "IllegalInput" : {
102
+ "description" : " Illegal input for operation."
103
+ }
104
+ },
105
+ "securitySchemes" : {
106
+ "api_key" : {
107
+ "type" : " apiKey" ,
108
+ "name" : " api_key" ,
109
+ "in" : " header"
110
+ },
111
+ "petstore_auth" : {
112
+ "type" : " oauth2" ,
113
+ "flows" : {
114
+ "implicit" : {
115
+ "authorizationUrl" : " http://example.org/api/oauth/dialog" ,
116
+ "scopes" : {
117
+ "write:pets" : " modify genes in your account" ,
118
+ "read:pets" : " read your genes"
119
+ }
120
+ }
121
+ }
122
+ }
123
+ }
124
+ },
125
+ "paths" : {
126
+ "/query" : {
127
+ "get" : {
128
+ "description" : " Makes gene query and returns matching gene list." ,
129
+ "summary" : " Makes gene query and returns matching gene list." ,
130
+ "x-accessRestriction" : " free" ,
131
+ "parameters" : [
132
+ {
133
+ "name" : " q" ,
134
+ "in" : " query" ,
135
+ "description" : " Query string. Examples \" CDK2\" , \" NM_052827\" , \" 204639_at\" . The detailed query syntax can be found at http://docs.mygene.info/en/latest/doc/query_service.html" ,
136
+ "required" : true ,
137
+ "schema" : {
138
+ "type" : " string"
139
+ },
140
+ "x-parameterType" : " InputParameter" ,
141
+ "x-valueType" : [
142
+ " http://identifiers.org/hgnc.symbol" ,
143
+ " http://identifiers.org/refseq" ,
144
+ " http://identifiers.org/unigene" ,
145
+ " http://identifiers.org/uniprot" ,
146
+ " http://identifiers.org/pdb' x-defaultValue: CDK2 x-exampleValue: CDK2 operationId: queryGene responses: responses: "
147
+ ]
148
+ }
149
+ ],
150
+ "operationId" : " add operation id here" ,
151
+ "responses" : {
152
+ "200" : {
153
+ "description" : " Successful response." ,
154
+ "content" : {
155
+ "application/json" : {
156
+ "x-responseProfile" : " http://www.w3.org/ns/anno.jsonld" ,
157
+ "x-responseValueType" : [
158
+ {
159
+ "path" : " a.id" ,
160
+ "valueType" : " http://example.org/a.id"
161
+ },
162
+ {
163
+ "path" : " a.b.c.id" ,
164
+ "valueType" : " http://example.org/c.id"
165
+ }
166
+ ]
167
+ }
168
+ }
169
+ }
170
+ }
171
+ }
172
+ },
173
+ "/gene/{geneid}" : {
174
+ "get" : {
175
+ "tags" : [
176
+ " gene"
177
+ ],
178
+ "parameters" : [
179
+ {
180
+ "name" : " geneid" ,
181
+ "in" : " path" ,
182
+ "description" : " Entrez or Ensembl gene id, e.g., 1017, ENSG00000170248. A retired Entrez Gene id works too if it is replaced by a new one, e.g., 245794" ,
183
+ "required" : true ,
184
+ "x-parameterType" : " InputParameter" ,
185
+ "x-valueType" : [
186
+ " http://identifiers.org/ncbigene" ,
187
+ " http://identifiers.org/ensembl"
188
+ ],
189
+ "x-defaultValue" : " add default" ,
190
+ "x-exampleValue" : " 1017"
191
+ }
192
+ ],
193
+ "operationId" : " getAnnotation" ,
194
+ "summary" : " add summary" ,
195
+ "responses" : {
196
+ "200" : {
197
+ "description" : " Successful response" ,
198
+ "content" : {
199
+ "application/json" : {
200
+ "x-responseSchema" : {
201
+ "properties" : {
202
+ "reporter" : {
203
+ "properties" : {
204
+ "HTA-2_0" : {
205
+ "type" : " string"
206
+ },
207
+ "HG-U133_Plus_2" : {
208
+ "items" : {
209
+ "type" : " string"
210
+ },
211
+ "type" : " array"
212
+ },
213
+ "HuEx-1_0" : {
214
+ "type" : " integer"
215
+ },
216
+ "HuGene-1_1" : {
217
+ "type" : " integer"
218
+ },
219
+ "HuGene-2_1" : {
220
+ "type" : " integer"
221
+ },
222
+ "HG-U95Av2" : {
223
+ "items" : {
224
+ "type" : " string"
225
+ },
226
+ "type" : " array"
227
+ }
228
+ },
229
+ "type" : " object"
230
+ }
231
+ }
232
+ },
233
+
234
+ "x-responseValueType" : [
235
+ {
236
+ "path" : " ec" ,
237
+ "valueType" : " http://identifiers.org/ec-code/"
238
+ },
239
+ {
240
+ "path" : " ensembl.gene" ,
241
+ "valueType" : " http://identifiers.org/ensembl/"
242
+ },
243
+ {
244
+ "path" : " ensembl.translation.protein" ,
245
+ "valueType" : " http://identifiers.org/ensembl/"
246
+ },
247
+ {
248
+ "path" : " ensembl.translation.rna" ,
249
+ "valueType" : " http://identifiers.org/ensembl/"
250
+ },
251
+ {
252
+ "path" : " entrezgene" ,
253
+ "valueType" : " http://identifiers.org/ncbigene/"
254
+ },
255
+ {
256
+ "path" : " generif.pubmed" ,
257
+ "valueType" : " http://identifiers.org/pubmed/"
258
+ }
259
+ ]
260
+ }
261
+ }
262
+ }
263
+ }
264
+ }
265
+ }
266
+ }
267
+ }
0 commit comments