-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathswagger.yaml
519 lines (518 loc) · 16.5 KB
/
swagger.yaml
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
openapi: 3.0.3
info:
version: 1.0.1
title: BridgeDb Webservices
description: |-
These are the BridgeDb Webservices for identifier to identifier mapping.
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: https://webservice.bridgedb.org
tags:
- name: mappings
description: Identifier mapping services for gene products (e.g. genes, RNA, proteins), metabolites, nutrients, hormones, vitamins, drugs, peptides, and chemical compounds from the exposome
- name: organism
description: Services to find details for the organism identifier mappings
- name: search
description: Services to find identifiers
- name: attributes
description: Services to get and search attributes
paths:
/{organism}/xrefs/{systemCode}/{identifier}:
get:
tags:
- mappings
summary: Returns a list of xrefs
description: Returns a list of xrefs that map to a given identifier, data source,
and organism.
parameters:
- name: organism
in: path
required: true
description: Organism [Latin name](http://vocabularies.bridgedb.org/#latinName)
or [short name](http://vocabularies.bridgedb.org/#shortName).
schema:
$ref: '#/components/schemas/Organism'
- name: systemCode
in: path
required: true
description: system code for the source database
schema:
$ref: '#/components/schemas/SystemCode'
- name: identifier
in: path
required: true
description: source identifier
schema:
type: string
responses:
200:
description: Returns a tab-delimited list of xrefs that map to a given identifier
content:
text/plain:
schema:
type: string
application/json:
schema:
type: object
/{organism}/xrefsBatch:
post:
tags:
- mappings
description: Returns a list of xrefs, that maps to a given list of identifiers
to a given data source and organism.
parameters:
- name: organism
in: path
required: true
description: Organism [Latin name](http://vocabularies.bridgedb.org/#latinName)
or [short name](http://vocabularies.bridgedb.org/#shortName).
schema:
$ref: '#/components/schemas/Organism'
requestBody:
content:
text/plain:
schema:
$ref: '#/components/schemas/XrefBatchInput'
responses:
200:
description: Returns a tab-delimited list of xrefs that map to a given identifier
content:
text/plain:
schema:
type: string
application/json:
schema:
type: object
/{organism}/xrefsBatch/{systemCode}:
post:
tags:
- mappings
description: Returns a list of xrefs, that maps to a given list of identifiers
to a given data source and organism.
parameters:
- name: organism
in: path
required: true
description: Organism [Latin name](http://vocabularies.bridgedb.org/#latinName)
or [short name](http://vocabularies.bridgedb.org/#shortName).
schema:
$ref: '#/components/schemas/Organism'
- name: systemCode
in: path
required: true
description: system code for the source database
schema:
$ref: '#/components/schemas/SystemCode'
requestBody:
content:
text/plain:
schema:
$ref: '#/components/schemas/XrefBatchInput'
responses:
200:
description: Returns a tab-delimited list of xrefs that map to a given identifier
content:
text/plain:
schema:
type: string
application/json:
schema:
type: object
/{organism}/xrefExists/{systemCode}/{identifier}:
get:
tags:
- search
description: Returns a list of xrefs, that maps to a given list of identifiers
to a given data source and organism.
parameters:
- name: organism
in: path
required: true
description: Organism [Latin name](http://vocabularies.bridgedb.org/#latinName)
or [short name](http://vocabularies.bridgedb.org/#shortName).
schema:
$ref: '#/components/schemas/Organism'
- name: systemCode
in: path
required: true
description: system code for the source database
schema:
$ref: '#/components/schemas/SystemCode'
- name: identifier
in: path
required: true
description: source identifier
schema:
type: string
responses:
200:
description: Returns a tab-delimited list of xrefs that map to a given identifier
content:
text/plain:
schema:
type: string
application/json:
schema:
type: object
/{organism}/search/{query}:
get:
tags:
- search
description: Returns a list of xrefs with identifiers that contain the query string for a given organism. Results are not restricted to exact matches. Optionally limit results to a specified number per data source.
parameters:
- name: organism
in: path
required: true
description: Organism [Latin name](http://vocabularies.bridgedb.org/#latinName)
or [short name](http://vocabularies.bridgedb.org/#shortName).
schema:
$ref: '#/components/schemas/Organism'
- name: query
in: path
required: true
example: 1234
description: identifier query
schema:
type: string
responses:
200:
description: Returns a tab-delimited list of xrefs that match to a given query
content:
text/plain:
schema:
type: string
application/json:
schema:
type: object
/{organism}/attributeSearch/{query}:
get:
tags:
- attributes
description: Returns a list of xrefs and associated attributes that contain the query string for a given organism. Results are not restricted to exact matches. Optionally limit results to a specified number per data source, or by the type of attribute. See possible attribute types via /{organism}/attributeSet.
parameters:
- name: organism
in: path
required: true
description: Organism [Latin name](http://vocabularies.bridgedb.org/#latinName)
or [short name](http://vocabularies.bridgedb.org/#shortName).
schema:
$ref: '#/components/schemas/Organism'
- name: query
in: path
required: true
example: 1234
description: identifier query
schema:
type: string
responses:
200:
description: Returns a tab-delimited list of xrefs that match to a given query
content:
text/plain:
schema:
type: string
application/json:
schema:
type: object
/{organism}/properties:
get:
tags:
- organism
description: Returns the list of properties available for a given organism.
parameters:
- name: organism
in: path
required: true
description: Organism [Latin name](http://vocabularies.bridgedb.org/#latinName)
or [short name](http://vocabularies.bridgedb.org/#shortName).
schema:
$ref: '#/components/schemas/Organism'
responses:
200:
description: Returns a tab-delimited list of xrefs that match to a given query
content:
text/plain:
schema:
type: string
application/json:
schema:
type: object
/{organism}/sourceDataSources:
get:
tags:
- organism
description: Returns a list of data sources available as xref sources for a given organism.
parameters:
- name: organism
in: path
required: true
description: Organism [Latin name](http://vocabularies.bridgedb.org/#latinName)
or [short name](http://vocabularies.bridgedb.org/#shortName).
schema:
$ref: '#/components/schemas/Organism'
responses:
200:
description: Returns a tab-delimited list of xrefs that match to a given query
content:
text/plain:
schema:
type: string
application/json:
schema:
type: object
/{organism}/targetDataSources:
get:
tags:
- organism
description: Returns a list of data sources available as xref sources for a given organism.
parameters:
- name: organism
in: path
required: true
description: Organism [Latin name](http://vocabularies.bridgedb.org/#latinName)
or [short name](http://vocabularies.bridgedb.org/#shortName).
schema:
$ref: '#/components/schemas/Organism'
responses:
200:
description: Returns a tab-delimited list of xrefs that match to a given query
content:
text/plain:
schema:
type: string
application/json:
schema:
type: object
/{organism}/isFreeSearchSupported:
get:
tags:
- organism
description: Returns true or false based on whether or not /{organism}/search/{query} is supported for a given organism.
parameters:
- name: organism
in: path
required: true
description: Organism [Latin name](http://vocabularies.bridgedb.org/#latinName)
or [short name](http://vocabularies.bridgedb.org/#shortName).
schema:
$ref: '#/components/schemas/Organism'
responses:
200:
description: Returns a tab-delimited list of xrefs that match to a given query
content:
text/plain:
schema:
type: boolean
application/json:
schema:
type: object
/{organism}/isMappingSupported/{sourceSystemCode}/{targetSystemCode}:
get:
tags:
- organism
description: Returns true or false based on whether or not /{organism}/search/{query} is supported for a given organism.
parameters:
- name: organism
in: path
required: true
description: Organism [Latin name](http://vocabularies.bridgedb.org/#latinName)
or [short name](http://vocabularies.bridgedb.org/#shortName).
schema:
$ref: '#/components/schemas/Organism'
- name: sourceSystemCode
in: path
required: true
description: system code for the source database
schema:
$ref: '#/components/schemas/SystemCode'
- name: targetSystemCode
in: path
required: true
description: system code for the source database
schema:
$ref: '#/components/schemas/SystemCode'
responses:
200:
description: Returns true or false based on whether or not /{organism}/xrefs/{systemCode}/{identifier} would possibly return a {targetSystemCode} result given a {sourceSystemCode} query. This function basically combines the results of /{organism}/sourceDataSources and /{organism}/targetDataSources into a single boolean result.
content:
text/plain:
schema:
type: boolean
application/json:
schema:
type: object
/{organism}/attributeSet:
get:
tags:
- organism
description: Returns the supported attributes to the given Organism.
parameters:
- name: organism
in: path
required: true
description: Organism [Latin name](http://vocabularies.bridgedb.org/#latinName)
or [short name](http://vocabularies.bridgedb.org/#shortName).
schema:
$ref: '#/components/schemas/Organism'
responses:
200:
description: Returns a tab-delimited list of xrefs that match to a given query
content:
text/plain:
schema:
type: boolean
application/json:
schema:
type: object
/{organism}/attributes/{systemCode}/{identifier}:
get:
tags:
- attributes
description: Returns the attributes for a given identifier, data source, organism. Optionally display only a specified attribute.
parameters:
- name: organism
in: path
required: true
description: Organism [Latin name](http://vocabularies.bridgedb.org/#latinName)
or [short name](http://vocabularies.bridgedb.org/#shortName).
schema:
$ref: '#/components/schemas/Organism'
- name: systemCode
in: path
required: true
description: system code for the source database
schema:
$ref: '#/components/schemas/SystemCode'
- name: identifier
in: path
required: true
description: source identifier
schema:
type: string
responses:
200:
description: Returns a tab-delimited list with the attributes and their content
content:
text/plain:
schema:
type: boolean
application/json:
schema:
type: object
components:
schemas:
SystemCode:
type: string
description: System code as used by BridgeDb, see [this list](https://www.bridgedb.org/pages/system-codes.html).
default: En
enum:
- En
- Cs
- X
- E
- Rh
- Ck
- Eco
- Cg
- Ch
- Il
- Uc
- Rf
- Pd
- U
- Ma
- Lm
- Wd
- Wi
- Cpc
- Mb
- Rk
- Ce
- S
- L
- Wg
- Om
- T
- Mc
- Ik
- H
- Re
- Ag
- Q
- Ca
- Up
- Cks
Organism:
type: string
default: Human
enum:
- Human
- Homo sapiens
- Tuberculosis
- Mycobacterium tuberculosis
- Mosquito
- Anopheles gambiae
- Zebra fish
- Danio rerio
- Arabidopsis thaliana
- Rice
- Oryza sativa
- Sea Squirt
- Ciona intestinalis
- Barley
- Hordeum vulgare
- Frog
- Xenopus tropicalis
- Soybean
- Glycine max
- Fruit fly
- Drosophila melanogaster
- Horse
- Equus caballus
- Rhesus Monkey
- Macaca mulatta
- Wine Grape
- Vitis vinifera
- Yeast
- Saccharomyces cerevisiae
- Tomato
- Solanum lycopersicum
- Rat
- Rattus norvegicus
- Cow
- Bos taurus
- Western Balsam Poplar
- Populus trichocarpa
- Chimpanzee
- Pan troglodytes
- Indian Rice
- Oryza indica
- Dog
- Canis familiaris
- Maize
- Zea mays
- Pig
- Sus scrofa
- Worm
- Caenorhabditis elegans
- Platypus
- Ornithorhynchus anatinus
- Chicken
- Gallus gallus
- Fusarium graminearum
- Gibberella zeae
- Bacillus subtilis
- Escherichia coli
- Black mold
- Aspergillus niger
- Mouse
- Mus musculus
XrefBatchInput:
type: string
description: TAB separated values with one identifier/system code combination per line
example: |-
Q90038963 Wd
P0DTD1-PRO_0000449625 S
ENSMUSG00000032462 En