Skip to content

Commit

Permalink
🆙 add validation and openapi specification to endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
juanesarango committed Dec 20, 2023
1 parent 2d70d49 commit a3e2ab5
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 7 deletions.
25 changes: 25 additions & 0 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,31 @@ paths:
$ref: '#/components/schemas/IpssrResponse'
'500':
description: An error occurred while calculating IPSS-R risk score
/annotateFile:
post:
summary: Annotate a file with patients, with IPSS-M and IPSS-R risk scores.
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
description: csv/tsv or excel file to be annotated. One patient per row.
responses:
'200':
description: Successful operation. Stream the annotated file as CSV.
content:
text/plain:
schema:
type: string
'400':
description: Bad request
'500':
description: An error occurred while annotating the file.
components:
schemas:
Clinical:
Expand Down
Loading

0 comments on commit a3e2ab5

Please sign in to comment.