9
9
title : BioThings Explorer ReasonerStdAPI
10
10
version : 2.8.1
11
11
x-trapi :
12
- version : 1.2.0
12
+ version : 1.2.0 # # will update to 1.3 once all instances have trapi1.3 code
13
13
asyncquery : true
14
14
operations :
15
- - lookup
16
- # # look at https://standards.ncats.io/operation.json for details
17
- # # perhaps advertise "lookup_and_score"?
15
+ # # look at https://standards.ncats.io/operation.json for details. was previously lookup
16
+ - lookup_and_score
17
+ # # no batch_size_limit (BTE manages IDs for QNodes and sub-queries internally)
18
+ # # /query endpoints have a limit of 15 requests/client/min
19
+ # # /meta_knowledge_graph endpoints have a limit of 30 requests/client/min
20
+ # # other endpoints don't have rate limits
18
21
x-translator :
19
22
infores : " infores:biothings-explorer"
20
23
biolink-version : 2.4.8
21
24
component : ARA
22
25
team :
23
26
- Exploring Agent
24
27
servers :
28
+ # # ITRB Production and Test are deployed manually, based on the staging instance
29
+ # # ITRB CI / staging is basically deployed manually, from main branches
30
+ # # - automatic for updates in bte-trapi-workspace main branch, but those rarely happen
31
+ # # - we could technically control what branches are used (but right now we don't do this)
32
+ # # non-ITRB dev: total manual control on updates (what branches of modules are used for updates)
25
33
- url : https://bte.transltr.io/v1
26
34
description : ITRB Production server
27
35
x-maturity : production
@@ -35,17 +43,18 @@ servers:
35
43
description : Non-ITRB dev (primary internal use)
36
44
x-maturity : development
37
45
tags :
38
- - name : 1.2.0
46
+ - name : 1.2.0 # # will update to 1.3 once all instances have trapi1.3 code
39
47
- name : meta_knowledge_graph
40
48
- name : query
41
49
- name : asyncquery
42
50
- name : translator
43
51
- name : trapi
44
52
- name : biothings
45
- # # Note: BTE has custom behavior so DO NOT blindly copy-paste the TRAPI specs / schemas below
53
+ # # Note: BTE has custom behavior so DO NOT blindly copy-paste the TRAPI specs / schemas into the document below
46
54
# # instead go through it and copy-paste in sections as-needed
47
55
# # examples are using MyVariant-specific query
48
56
paths :
57
+ # # copied directly from TRAPI spec
49
58
/meta_knowledge_graph :
50
59
get :
51
60
tags :
59
68
application/json :
60
69
schema :
61
70
$ref : ' #/components/schemas/MetaKnowledgeGraph'
71
+ # # copied from /meta_knowledge_graph above and modified: BTE-specific endpoint
62
72
/smartapi/{smartapi_id}/meta_knowledge_graph :
63
73
get :
64
74
tags :
80
90
application/json :
81
91
schema :
82
92
$ref : ' #/components/schemas/MetaKnowledgeGraph'
93
+ # # copied from /meta_knowledge_graph above and modified: BTE-specific endpoint
83
94
/team/{team_name}/meta_knowledge_graph :
84
95
get :
85
96
tags :
@@ -105,12 +116,12 @@ paths:
105
116
application/json :
106
117
schema :
107
118
$ref : ' #/components/schemas/MetaKnowledgeGraph'
119
+ # # modified TRAPI spec: example and BTE-specific parameters, used by developers running local instances of BTE
108
120
/query :
109
121
post :
110
122
tags :
111
123
- query
112
124
summary : Query BioThings Explorer TRAPI API as ARA with a TRAPI query
113
- operationId : query
114
125
parameters :
115
126
- description : option to choose whether or not to enable caching
116
127
in : query
@@ -180,13 +191,12 @@ paths:
180
191
application/json :
181
192
schema :
182
193
type : string
183
- x-swagger-router-controller : swagger_server.controllers.query_controller
194
+ # # copied from /query above and modified: BTE-specific endpoint
184
195
/smartapi/{smartapi_id}/query :
185
196
post :
186
197
tags :
187
198
- query
188
199
summary : Query individual SmartAPI KP API (that has x-bte annotation) as a TRAPI API
189
- operationId : querySmartAPI
190
200
parameters :
191
201
- description : SmartAPI ID of an API, you can get it from https://smart-api.info/registry
192
202
in : path
@@ -263,7 +273,7 @@ paths:
263
273
application/json :
264
274
schema :
265
275
type : string
266
- x-swagger-router-controller : swagger_server.controllers.query_controller
276
+ # # copied from /query above and modified: BTE-specific endpoint
267
277
/team/{team_name}/query :
268
278
post :
269
279
tags :
@@ -272,7 +282,6 @@ paths:
272
282
Query an individual Translator team's SMARTAPI KP APIs (that have x-bte annotation) as an individual TRAPI
273
283
service using team name
274
284
description : ' '
275
- operationId : queryTeam
276
285
parameters :
277
286
- description : Translator Team Name, e.g. Service Provider, Multiomics Provider
278
287
in : path
@@ -353,8 +362,17 @@ paths:
353
362
application/json :
354
363
schema :
355
364
type : string
356
- x-swagger-router-controller : swagger_server.controllers.query_controller
365
+ # # not TRAPI spec: BTE-specific endpoint related to asyncquery
357
366
/check_query_status/{id} :
367
+ # # moved because smartapi-editor gave alert that a non-existent post endpoint wouldn't know what {id} is
368
+ parameters :
369
+ - description : job-id
370
+ in : path
371
+ name : id
372
+ required : true
373
+ # # Cache refreshing means this will be changing pretty often, so not including an example
374
+ schema :
375
+ type : string
358
376
get :
359
377
tags :
360
378
- asyncquery
@@ -365,13 +383,6 @@ paths:
365
383
the Response.
366
384
description : ' '
367
385
parameters :
368
- - description : job-id
369
- in : path
370
- name : id
371
- required : true
372
- # # Cache refreshing means this will be changing pretty often, so not including an example
373
- schema :
374
- type : string
375
386
- description : option to override original query log level
376
387
in : query
377
388
name : log_level
@@ -412,7 +423,7 @@ paths:
412
423
properties :
413
424
response :
414
425
$ref : ' #/components/schemas/Response'
415
- # # note that the AsyncQuery schema is changed to make callback optional
426
+ # # modified TRAPI spec: summary sections tell users that AsyncQuery schema was changed to make callback optional
416
427
/asyncquery :
417
428
post :
418
429
tags :
@@ -498,6 +509,7 @@ paths:
498
509
application/json :
499
510
schema :
500
511
type : string
512
+ # # copied from /asyncquery above and modified: BTE-specific endpoint
501
513
/smartapi/{smartapi_id}/asyncquery :
502
514
post :
503
515
tags :
@@ -592,6 +604,7 @@ paths:
592
604
application/json :
593
605
schema :
594
606
type : string
607
+ # # copied from /asyncquery above and modified: BTE-specific endpoint
595
608
/team/{team_name}/asyncquery :
596
609
post :
597
610
tags :
@@ -692,6 +705,13 @@ paths:
692
705
schema :
693
706
type : string
694
707
components :
708
+ # # look for comments to see parts that have been modified for BTE
709
+ # # - Query: comment out workflow.allOf section since the $ref breaks execution of
710
+ # # BTE's api-schema-builder/openapi-validator-middleware
711
+ # # - AsyncQuery: callback property not required (commented it out of the 'required' field),
712
+ # # comment out workflow.allOf section
713
+ # # - Response: comment out workflow.allOf section
714
+ # # - QNode: commented out an example for some reason
695
715
schemas :
696
716
Query :
697
717
description : >-
0 commit comments