Skip to content

Commit

Permalink
bte/service provider temp 1.4 yamls: remove /check_query_status endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
colleenXu committed May 17, 2023
1 parent 0420b43 commit 744c942
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 126 deletions.
62 changes: 0 additions & 62 deletions biothings_explorer/temp-trapi14-bte.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -418,68 +418,6 @@ paths:
application/json:
schema:
type: string
## not TRAPI spec: BTE-specific endpoint related to asyncquery
/check_query_status/{id}:
## moved because smartapi-editor gave alert that a non-existent post endpoint wouldn't know what {id} is
parameters:
- description: job-id
in: path
name: id
required: true
## Cache refreshing means this will be changing pretty often, so not including an example
schema:
type: string
get:
tags:
- asyncquery_status
summary: >-
This endpoint can be used when a Query was sent to BTE through an /asyncquery
endpoint without a callback property: BTE then handled it in a polling manner and
provided a job id. The job id can be used here to check the status or retrieve
the Response.
parameters:
- description: option to override original query log level
in: query
name: log_level
required: false
schema:
type: string
description: >-
Logging level. The order of priority is ERROR, WARNING, INFO, DEBUG. BTE will return all logs at the
specified level and those at higher priority levels
enum:
- ERROR
- WARNING
- INFO
- DEBUG
responses:
'200':
description: Returns status. If successfully completed, it will return a TRAPI Response object under the field returnvalue
content:
application/json:
schema:
type: object
required:
- id
- state
properties:
id:
description: the job-id
type: string
state:
description: the status of the job
reason:
description: when the state is 'failed', this field states a reason for the failure
type: string
returnvalue:
## returnvalue.response is where the TRAPI Response is
description: >-
When the state is 'completed', this will contain the TRAPI Response object. Note
that BTE might return an error, no results, etc as a Response...
type: object
properties:
response:
$ref: '#/components/schemas/Response'
## modified TRAPI spec: summary sections tell users that AsyncQuery schema was changed to make callback optional
/asyncquery:
post:
Expand Down
64 changes: 0 additions & 64 deletions biothings_explorer/temp-trapi14-service-provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,70 +161,6 @@ paths:
application/json:
schema:
type: string
## need to remove the extra stuff from server url to use this endpoint..
## example: https://api.bte.ncats.io/check_query_status/{id}
## not TRAPI spec: BTE-specific endpoint related to asyncquery
# /check_query_status/{id}:
# ## moved because smartapi-editor gave alert that a non-existent post endpoint wouldn't know what {id} is
# parameters:
# - description: job-id
# in: path
# name: id
# required: true
# ## Cache refreshing means this will be changing pretty often, so not including an example
# schema:
# type: string
# get:
# tags:
# - asyncquery_status
# summary: >-
# This endpoint can be used when a Query was sent to BTE through an /asyncquery
# endpoint without a callback property: BTE then handled it in a polling manner and
# provided a job id. The job id can be used here to check the status or retrieve
# the Response.
# parameters:
# - description: option to override original query log level
# in: query
# name: log_level
# required: false
# schema:
# type: string
# description: >-
# Logging level. The order of priority is ERROR, WARNING, INFO, DEBUG. BTE will return all logs at the
# specified level and those at higher priority levels
# enum:
# - ERROR
# - WARNING
# - INFO
# - DEBUG
# responses:
# '200':
# description: Returns status. If successfully completed, it will return a TRAPI Response object under the field returnvalue
# content:
# application/json:
# schema:
# type: object
# required:
# - id
# - state
# properties:
# id:
# description: the job-id
# type: string
# state:
# description: the status of the job
# reason:
# description: when the state is 'failed', this field states a reason for the failure
# type: string
# returnvalue:
# ## returnvalue.response is where the TRAPI Response is
# description: >-
# When the state is 'completed', this will contain the TRAPI Response object. Note
# that BTE might return an error, no results, etc as a Response...
# type: object
# properties:
# response:
# $ref: '#/components/schemas/Response'
## copied from BTE's /asyncquery and modified summary
/asyncquery:
post:
Expand Down

0 comments on commit 744c942

Please sign in to comment.