-
Notifications
You must be signed in to change notification settings - Fork 31
/
openapi_minimum.yml
104 lines (104 loc) · 3.82 KB
/
openapi_minimum.yml
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
openapi: '3.0.0'
info:
version: '3.0'
title: MyGene.info API
description: >-
Documentation of the MyGene.info Gene Query web services. Learn more about
[MyGene.info](http://mygene.info/)
termsOfService: http://mygene.info/terms/
contact:
name: Chunlei Wu
x-role: responsible developer
email: [email protected]
x-id: 'https://github.com/newgene'
x-translator:
component: KP
team:
- Service Provider
servers:
- url: 'http://mygene.info/v3'
description: 'Production server'
tags:
- name: gene
- name: annotation
- name: query
- name: translator
paths:
/query:
get:
summary: 'Make gene query and return matching gene hits'
parameters:
- name: q
in: query
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
required: true
x-valueType:
- 'http://identifiers.org/hgnc.symbol/'
- 'http://identifiers.org/refseq/'
- 'http://identifiers.org/unigene/'
- 'http://identifiers.org/uniprot/'
- 'http://identifiers.org/pdb/'
- 'http://identifiers.org/biocarta.pathway/'
- 'http://identifiers.org/kegg.pathway/'
- 'http://identifiers.org/wikipathways/'
- 'http://identifiers.org/pharmgkb.pathways/'
- 'http://identifiers.org/reactome/'
schema:
type: string
responses:
'200':
description: 'A query response object with "hits" property'
x-responseValueType:
- path: hits._id
valueType: 'http://identifiers.org/ncbigene/'
- path: hits.entrezgene
valueType: 'http://identifiers.org/ncbigene/'
- path: hits.symbol
valueType: 'http://identifiers.org/hgnc.symbol/'
- path: hits.taxid
valueType: 'http://identifiers.org/taxonomy/'
x-JSONLDContext:
'https://github.com/NCATS-Tangerine/translator-api-registry/blob/master/mygene.info/jsonld_context/mygene_context.json'
'/gene/{geneid}':
get:
summary: 'For a given gene id, return the matching gene object'
parameters:
- name: geneid
in: path
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
required: true
x-valueType:
- 'http://identifiers.org/ncbigene/'
- 'http://identifiers.org/ensembl/'
schema:
type: string
responses:
'200':
description: 'A gene object'
x-responseValueType:
- path: symbol
valueType: 'http://identifiers.org/hgnc.symbol/'
- path: unigene
valueType: 'http://identifiers.org/unigene/'
- path: uniprot.Swiss-Prot
valueType: 'http://identifiers.org/uniprot/'
- path: pdb
valueType: 'http://identifiers.org/pdb/'
- path: pathway.biocarta.id
valueType: 'http://identifiers.org/biocarta.pathway/'
- path: pathway.kegg.id
valueType: 'http://identifiers.org/kegg.pathway/'
- path: pathway.reactome.id
valueType: 'http://identifiers.org/reactome/'
- path: pathway.wikipathways.id
valueType: 'http://identifiers.org/wikipathways/'
- path: pathway.pharmgkb.id
valueType: 'http://identifiers.org/pharmgkb.pathways/'
x-JSONLDContext:
'https://github.com/NCATS-Tangerine/translator-api-registry/blob/master/mygene.info/jsonld_context/mygene_context.json'