Skip to content

Commit 97d2de3

Browse files
committed
feat(openapi): add map-type filters and media map flags
1 parent 5d36e1b commit 97d2de3

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

neurostore-openapi.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@ paths:
547547
- $ref: '#/components/parameters/authors'
548548
- $ref: '#/components/parameters/user_id'
549549
- $ref: '#/components/parameters/data_type'
550+
- $ref: '#/components/parameters/map_type'
550551
- $ref: '#/components/parameters/studyset_owner'
551552
- $ref: '#/components/parameters/level'
552553
- $ref: '#/components/parameters/pmid'
@@ -1445,6 +1446,7 @@ paths:
14451446
- $ref: '#/components/parameters/authors'
14461447
- $ref: '#/components/parameters/level'
14471448
- $ref: '#/components/parameters/data_type'
1449+
- $ref: '#/components/parameters/map_type'
14481450
- $ref: '#/components/parameters/is_oa'
14491451
- $ref: '#/components/parameters/publication'
14501452
- $ref: '#/components/parameters/pmid'
@@ -1936,6 +1938,12 @@ components:
19361938
type: boolean
19371939
x-stoplight:
19381940
id: 5awd3fw7bz8sw
1941+
has_z_maps:
1942+
type: boolean
1943+
has_t_maps:
1944+
type: boolean
1945+
has_beta_and_variance_maps:
1946+
type: boolean
19391947
base_study:
19401948
type: string
19411949
x-stoplight:
@@ -2044,6 +2052,18 @@ components:
20442052
- $ref: '#/components/schemas/resource-attributes'
20452053
- $ref: '#/components/schemas/analysis-return-relationships'
20462054
- $ref: '#/components/schemas/analysis-common'
2055+
- type: object
2056+
properties:
2057+
has_coordinates:
2058+
type: boolean
2059+
has_images:
2060+
type: boolean
2061+
has_z_maps:
2062+
type: boolean
2063+
has_t_maps:
2064+
type: boolean
2065+
has_beta_and_variance_maps:
2066+
type: boolean
20472067
x-tags:
20482068
- analysis
20492069
analysis-request:
@@ -2839,6 +2859,16 @@ components:
28392859
- $ref: '#/components/schemas/base-study'
28402860
- $ref: '#/components/schemas/resource-attributes'
28412861
properties:
2862+
has_coordinates:
2863+
type: boolean
2864+
has_images:
2865+
type: boolean
2866+
has_z_maps:
2867+
type: boolean
2868+
has_t_maps:
2869+
type: boolean
2870+
has_beta_and_variance_maps:
2871+
type: boolean
28422872
features:
28432873
type: object
28442874
base-study-list:
@@ -3094,6 +3124,18 @@ components:
30943124
- image
30953125
- both
30963126
description: 'whether searching for studies that contain coordinates, images, or both'
3127+
map_type:
3128+
name: map_type
3129+
in: query
3130+
required: false
3131+
schema:
3132+
type: string
3133+
enum:
3134+
- z
3135+
- t
3136+
- beta_variance
3137+
- any
3138+
description: filter by stored map-type flags
30973139
studyset_owner:
30983140
name: studyset_owner
30993141
in: query

0 commit comments

Comments
 (0)