Skip to content

Commit

Permalink
Update Person Name API , replace get by post verb
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter committed Oct 18, 2020
1 parent abedaa0 commit f60c52d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions openapi/person-name-annotator/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ info:
This NLP tool detects references of person names in the clinical notes given
as input and returns a list of person name annotations.
tags:
- name: Person Name
description: Operations about person names
- name: Health
description: Operations about API health
- name: Person Name
description: Operations about person names
servers:
- url: 'http://example.com/api/v1'
- url: 'https://example.com/api/v1'
paths:
/person-names:
$ref: 'paths/person-names.yaml'
/health:
$ref: '../commons/paths/health.yaml'
$ref: '../commons/paths/health.yaml'
/person-names:
$ref: 'paths/person-names.yaml'
18 changes: 9 additions & 9 deletions openapi/person-name-annotator/paths/person-names.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
get:
post:
tags:
- Person Name
summary: Get all person name annotations
description: Returns the person name annotations
operationId: "person_names.read_all"
requestBody:
content:
application/json:
schema:
type: array
items:
$ref: ../../commons/components/schemas/Note.yaml
responses:
'200':
description: Success
Expand All @@ -14,11 +21,4 @@ get:
items:
$ref: ../../commons/components/schemas/PersonNameAnnotation.yaml
'403':
description: Forbidden
requestBody:
content:
application/json:
schema:
type: array
items:
$ref: ../../commons/components/schemas/Note.yaml
description: Forbidden

0 comments on commit f60c52d

Please sign in to comment.