From b95cf8ebb4627871bb360359d9f3482e93ad44fb Mon Sep 17 00:00:00 2001 From: "james.kent@austin.utexas.edu" Date: Thu, 21 Mar 2024 17:35:33 -0500 Subject: [PATCH 1/5] allow put list to annotation-analyses --- neurostore-openapi.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/neurostore-openapi.yml b/neurostore-openapi.yml index d0f8910..b43a638 100644 --- a/neurostore-openapi.yml +++ b/neurostore-openapi.yml @@ -931,6 +931,28 @@ paths: $ref: '#/components/schemas/note-collection-list' x-stoplight: id: fjrufmjjb3y4q + put: + summary: Your PUT endpoint + tags: + - analyses + - annotations + - store + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/note-collection-return' + x-stoplight: + id: z1xizns9dcjz5 + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/note-collection-request' '/annotation-analyses/{id}': parameters: - schema: From f7bebe3b24d0e79cb2bcab0c9de5005944724b90 Mon Sep 17 00:00:00 2001 From: "james.kent@austin.utexas.edu" Date: Thu, 21 Mar 2024 19:08:51 -0500 Subject: [PATCH 2/5] change put to post --- neurostore-openapi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neurostore-openapi.yml b/neurostore-openapi.yml index b43a638..53f199b 100644 --- a/neurostore-openapi.yml +++ b/neurostore-openapi.yml @@ -931,8 +931,8 @@ paths: $ref: '#/components/schemas/note-collection-list' x-stoplight: id: fjrufmjjb3y4q - put: - summary: Your PUT endpoint + post: + summary: Your POST endpoint tags: - analyses - annotations From ee4dc4454e10b11979029999a9e459b5dcc5ed2c Mon Sep 17 00:00:00 2001 From: "james.kent@austin.utexas.edu" Date: Thu, 21 Mar 2024 19:32:40 -0500 Subject: [PATCH 3/5] add security --- neurostore-openapi.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neurostore-openapi.yml b/neurostore-openapi.yml index 53f199b..0f9606c 100644 --- a/neurostore-openapi.yml +++ b/neurostore-openapi.yml @@ -953,6 +953,8 @@ paths: type: array items: $ref: '#/components/schemas/note-collection-request' + security: + - JSON-Web-Token: [] '/annotation-analyses/{id}': parameters: - schema: From 3c6e5c470c399ac335575c3193fb0fb06dde6b09 Mon Sep 17 00:00:00 2001 From: "james.kent@austin.utexas.edu" Date: Thu, 21 Mar 2024 19:35:36 -0500 Subject: [PATCH 4/5] make output array --- neurostore-openapi.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neurostore-openapi.yml b/neurostore-openapi.yml index 0f9606c..3592c2e 100644 --- a/neurostore-openapi.yml +++ b/neurostore-openapi.yml @@ -943,7 +943,9 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/note-collection-return' + type: array + items: + $ref: '#/components/schemas/note-collection-return' x-stoplight: id: z1xizns9dcjz5 requestBody: From 5cb90a466cfb22fac689d79647cc4d6af332c330 Mon Sep 17 00:00:00 2001 From: "james.kent@austin.utexas.edu" Date: Thu, 21 Mar 2024 19:50:12 -0500 Subject: [PATCH 5/5] add more description --- neurostore-openapi.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/neurostore-openapi.yml b/neurostore-openapi.yml index 3592c2e..5e720c5 100644 --- a/neurostore-openapi.yml +++ b/neurostore-openapi.yml @@ -957,6 +957,10 @@ paths: $ref: '#/components/schemas/note-collection-request' security: - JSON-Web-Token: [] + description: |- + This endpoint does not allow for creation, only modification of existing annotation-analyses. + If you wish to create an annotation-analysis, post to the annotations endpoint and/or add the analysis + to the appropriate study in the studyset, and the annotation-analysis will be created automatically. '/annotation-analyses/{id}': parameters: - schema: