Skip to content

Commit

Permalink
Fix Open API
Browse files Browse the repository at this point in the history
  • Loading branch information
luk27official committed Apr 11, 2024
1 parent 13e2b94 commit fc7f25d
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions documentation/prankweb.open-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ servers:
- url: https://prankweb.cz/api/v2/

paths:
/predictions/{database}/{task}/:
/prediction/{database}/{prediction_task_id}:
get:
parameters:
- in: path
Expand All @@ -28,7 +28,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/PredictionTask'
/predictions/{database}/{task}/log:
/prediction/{database}/{prediction_task_id}/log:
get:
parameters:
- in: path
Expand All @@ -48,7 +48,7 @@ paths:
text/plain:
schema:
type: string
/predictions/{database}/{task}/public/prediction.json:
/prediction/{database}/{prediction_task_id}/public/prediction.json:
get:
parameters:
- in: path
Expand All @@ -61,19 +61,14 @@ paths:
required: true
schema:
$ref: '#/components/schemas/PredictionTaskId'
- in: path
name: docking_task_hash
required: true
schema:
$ref: '#/components/schemas/DockingRequest'
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/Prediction'
/docking/{database}/{task}/tasks:
/docking/{database}/{prediction_task_id}/tasks:
get:
parameters:
- in: path
Expand All @@ -93,7 +88,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/DockingTaskList'
/docking/{database}/{task}/public/result.json:
/docking/{database}/{prediction_task_id}/public/result.json:
get:
parameters:
- in: path
Expand All @@ -106,13 +101,11 @@ paths:
required: true
schema:
$ref: '#/components/schemas/PredictionTaskId'
queryParameters:
description: The request needs to contain the hash of the docking task.
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/DockingRequest'
- in: query
name: hash
required: true
schema:
type: string
responses:
'200':
description: Success
Expand All @@ -132,6 +125,8 @@ components:
properties:
id:
type: string
database:
type: string
created:
type: string
format: date-time
Expand All @@ -141,6 +136,8 @@ components:
status:
type: string
enum: ['queued', 'running', 'failed', 'successful']
metadata:
type: object
Prediction:
type: object
properties:
Expand Down Expand Up @@ -228,8 +225,6 @@ components:
type: string
pocket:
type: string
DockingRequest:
type: string
DockingResponse:
type: array
items:
Expand Down

0 comments on commit fc7f25d

Please sign in to comment.