From 69285b3ecb6ad7fb43757797f7148cd72ef25db7 Mon Sep 17 00:00:00 2001 From: "james.kent@austin.utexas.edu" Date: Thu, 13 Jul 2023 10:03:46 -0500 Subject: [PATCH] Modified neurostore-openapi.yml --- neurostore-openapi.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/neurostore-openapi.yml b/neurostore-openapi.yml index 13615d7..ef61fc9 100755 --- a/neurostore-openapi.yml +++ b/neurostore-openapi.yml @@ -209,6 +209,7 @@ paths: parameters: - $ref: '#/components/parameters/nested' - $ref: '#/components/parameters/studyset_owner' + - $ref: '#/components/parameters/flat' put: summary: PUT/update a study responses: @@ -825,6 +826,8 @@ paths: - $ref: '#/components/parameters/publication' - $ref: '#/components/parameters/pmid' - $ref: '#/components/parameters/doi' + - $ref: '#/components/parameters/flat' + - $ref: '#/components/parameters/info' security: - JSON-Web-Token: [] - {} @@ -862,6 +865,9 @@ paths: application/json: schema: $ref: '#/components/schemas/base-study-return' + parameters: + - $ref: '#/components/parameters/flat' + - $ref: '#/components/parameters/info' put: summary: '' responses: @@ -1953,6 +1959,23 @@ components: schema: type: string description: search for study with specific doi + flat: + name: flat + in: query + required: false + schema: + type: string + enum: + - 'true' + - 'false' + description: 'do not return any embedded relationships. When set, it is incompatible with nested. ' + info: + name: info + in: query + required: false + schema: + type: string + description: show additional for endpoint-object relationships without being fully nested. Incompatible with nested securitySchemes: JSON-Web-Token: type: http