diff --git a/openapi.yml b/openapi.yml index b218e9e..6b058ea 100644 --- a/openapi.yml +++ b/openapi.yml @@ -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: diff --git a/redoc-static.html b/redoc-static.html index a1c4a9b..8d9c585 100644 --- a/redoc-static.html +++ b/redoc-static.html @@ -340,7 +340,7 @@ -

Successful operation

Request samples

Content type
application/json
{
  • "BM_BLAST": 30,
  • "HB": 4,
  • "PLT": 2000,
  • "ANC": 15,
  • "AGE": 18,
  • "CYTO_IPSSR": "Very Good"
}

Response samples

Content type
application/json
{
  • "patient": {
    },
  • "ipssr": {
    }
}
+

Request samples

Content type
application/json
{
  • "BM_BLAST": 30,
  • "HB": 4,
  • "PLT": 2000,
  • "ANC": 15,
  • "AGE": 18,
  • "CYTO_IPSSR": "Very Good"
}

Response samples

Content type
application/json
{
  • "patient": {
    },
  • "ipssr": {
    }
}

Annotate a patient file

Request Body schema: multipart/form-data
required
file
string <binary>

Responses