File tree Expand file tree Collapse file tree 1 file changed +51
-25
lines changed Expand file tree Collapse file tree 1 file changed +51
-25
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,12 @@ x-externalResources:
26
26
- x-url: 'http://twitter.com/mygeneinfo'
27
27
x-type: social media
28
28
servers:
29
- - url: 'http://mygene.info'
29
+ - url: 'http://mygene.info/{basePath} '
30
30
description: Development server
31
31
x-___location: 'California, USA'
32
+ variables:
33
+ basePath:
34
+ default: v3
32
35
tags:
33
36
- x-id: 'http://purl.bioontology.org/ontology/MESH/D005796'
34
37
name: Genes
@@ -116,7 +119,11 @@ paths:
116
119
description: Successful response.
117
120
content:
118
121
application/json:
119
- x-responseProfile: 'http://www.w3.org/ns/anno.jsonld'
122
+ x-responseValueType:
123
+ - path: a.id
124
+ valueType: 'http://example.org/a.id'
125
+ - path: a.b.c.id
126
+ valueType: 'http://example.org/c.id'
120
127
'/gene/{geneid}':
121
128
get:
122
129
tags:
@@ -140,29 +147,48 @@ paths:
140
147
responses:
141
148
'200':
142
149
description: Successful response
143
- content:
144
- application/json:
145
- x-responseSchema:
146
- properties:
147
- reporter:
148
- properties:
149
- HTA-2_0:
150
- type: string
151
- HG-U133_Plus_2:
152
- items:
153
- type: string
154
- type: array
155
- HuEx-1_0:
156
- type: integer
157
- HuGene-1_1:
158
- type: integer
159
- HuGene-2_1:
160
- type: integer
161
- HG-U95Av2:
162
- items:
163
- type: string
164
- type: array
165
- type: object
150
+ "content": {
151
+ "application/json": {
152
+ "schema": {
153
+ "type": "array",
154
+ "items": {
155
+ "properties": {
156
+ "reporter": {
157
+ "properties": {
158
+ "HTA-2_0": {
159
+ "type": "string"
160
+ },
161
+ "HG-U133_Plus_2": {
162
+ "type": "array",
163
+ "items": {
164
+ "type": "string"
165
+ }
166
+ },
167
+ "HuGene-2_1": {
168
+ "type": "integer"
169
+ },
170
+ "HuGene-1_1": {
171
+ "type": "integer"
172
+ },
173
+ "HG-U95Av2": {
174
+ "type": "array",
175
+ "items": {
176
+ "type": "string"
177
+ }
178
+ },
179
+ "HuEx-1_0": {
180
+ "type": "integer"
181
+ }
182
+ },
183
+ "type": "object"
184
+ }
185
+ }
186
+ }
187
+ }
188
+ }
189
+ }
190
+ x-responseSchema: 'Conformance to a particular schema/format'
191
+ x-JSONLDContext: 'http://www.w3.org/ns/anno.jsonld'
166
192
x-responseValueType:
167
193
- path: ec
168
194
valueType: 'http://identifiers.org/ec-code/'
You can’t perform that action at this time.
0 commit comments