From f60c52d6282fe26054f62b654067207b1ce7903c Mon Sep 17 00:00:00 2001 From: tschaffter Date: Sun, 18 Oct 2020 11:07:25 -0700 Subject: [PATCH] Update Person Name API , replace get by post verb --- openapi/person-name-annotator/openapi.yaml | 10 +++++----- .../paths/person-names.yaml | 18 +++++++++--------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/openapi/person-name-annotator/openapi.yaml b/openapi/person-name-annotator/openapi.yaml index 9eba9fcc..3781aafe 100644 --- a/openapi/person-name-annotator/openapi.yaml +++ b/openapi/person-name-annotator/openapi.yaml @@ -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' \ No newline at end of file + $ref: '../commons/paths/health.yaml' + /person-names: + $ref: 'paths/person-names.yaml' \ No newline at end of file diff --git a/openapi/person-name-annotator/paths/person-names.yaml b/openapi/person-name-annotator/paths/person-names.yaml index 8a8c6696..31674769 100644 --- a/openapi/person-name-annotator/paths/person-names.yaml +++ b/openapi/person-name-annotator/paths/person-names.yaml @@ -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 @@ -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 \ No newline at end of file + description: Forbidden \ No newline at end of file