From e4832d0587c4f2ea2f77ca34f34fc1e87cd1fecb Mon Sep 17 00:00:00 2001 From: "james.kent@austin.utexas.edu" Date: Wed, 3 Apr 2024 15:53:00 -0500 Subject: [PATCH 1/3] allow filter by user id --- neurosynth-compose-openapi.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/neurosynth-compose-openapi.yml b/neurosynth-compose-openapi.yml index 130c677..c30bbf6 100644 --- a/neurosynth-compose-openapi.yml +++ b/neurosynth-compose-openapi.yml @@ -759,6 +759,7 @@ paths: - $ref: '#/components/parameters/description' - $ref: '#/components/parameters/sort' - $ref: '#/components/parameters/desc' + - $ref: '#/components/parameters/user_id' post: summary: '' responses: @@ -1532,10 +1533,9 @@ components: - minItems: 1 items: $ref: '#/components/schemas/meta-analysis' - type: array - items: type: string - type: array + type: array name: type: string nullable: true @@ -1549,7 +1549,6 @@ components: description: whether the project is public or private neurostore_study: $ref: '#/components/schemas/neurostore-study' - nullable: true neurostore_url: type: string x-stoplight: @@ -1855,6 +1854,13 @@ components: items: type: string description: choose the specific ids you wish to get + user_id: + name: user_id + in: query + required: false + schema: + type: string + description: user id you want to filter on responses: bad-request: description: form when a request goes wrong From 39c008eadf485cf25fe3b01f70e3282e59d2bdaa Mon Sep 17 00:00:00 2001 From: "james.kent@austin.utexas.edu" Date: Wed, 3 Apr 2024 16:22:49 -0500 Subject: [PATCH 2/3] Modified neurosynth-compose-openapi.yml --- neurosynth-compose-openapi.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neurosynth-compose-openapi.yml b/neurosynth-compose-openapi.yml index c30bbf6..3eae377 100644 --- a/neurosynth-compose-openapi.yml +++ b/neurosynth-compose-openapi.yml @@ -1531,11 +1531,12 @@ components: meta_analyses: oneOf: - minItems: 1 + type: array items: $ref: '#/components/schemas/meta-analysis' - items: type: string - type: array + type: array name: type: string nullable: true From 112715bc2ba4e84c95dccb0a3646fb1aaab31627 Mon Sep 17 00:00:00 2001 From: "james.kent@austin.utexas.edu" Date: Wed, 3 Apr 2024 16:24:08 -0500 Subject: [PATCH 3/3] Modified neurosynth-compose-openapi.yml --- neurosynth-compose-openapi.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/neurosynth-compose-openapi.yml b/neurosynth-compose-openapi.yml index 3eae377..a59375a 100644 --- a/neurosynth-compose-openapi.yml +++ b/neurosynth-compose-openapi.yml @@ -1550,6 +1550,7 @@ components: description: whether the project is public or private neurostore_study: $ref: '#/components/schemas/neurostore-study' + nullable: true neurostore_url: type: string x-stoplight: