Skip to content

Commit 4490e97

Browse files
committed
add config_filter logic
1 parent dbdfac8 commit 4490e97

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

neurostore-openapi.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,10 +1092,34 @@ paths:
10921092
parameters:
10931093
- name: feature_filter
10941094
in: query
1095-
description: Filter studies by features
1095+
description: >
1096+
Filter studies by feature content. Format: "PipelineName[:version]:field_path=value".
1097+
Examples:
1098+
- "TestPipeline:1.0.0:predictions.age_mean>20" (specific version)
1099+
- "TestPipeline:groups.diagnosis=ADHD" (any version)
1100+
1101+
Field path supports array notation with [], regex search with ~, and comparisons with =, >, <, >=, <=.
10961102
required: false
10971103
schema:
1098-
type: string
1104+
type: array
1105+
items:
1106+
type: string
1107+
example: 'TestPipeline:1.0.0:predictions.age_mean>20'
1108+
- name: feature_config
1109+
in: query
1110+
description: >
1111+
Filter studies by pipeline config content. Format: "PipelineName[:version]:config_path=value".
1112+
Examples:
1113+
- "TestPipeline:1.0.0:settings.min_age=20" (specific version)
1114+
- "TestPipeline:model.type=linear" (any version)
1115+
1116+
Config path supports array notation with [], regex search with ~, and comparisons with =, >, <, >=, <=.
1117+
required: false
1118+
schema:
1119+
type: array
1120+
items:
1121+
type: string
1122+
example: 'TestPipeline:1.0.0:settings.min_age=20'
10991123
- name: feature_display
11001124
in: query
11011125
description: display features from pipelines

0 commit comments

Comments
 (0)