Skip to content

Commit 9a29a8f

Browse files
committed
Merge branch 'main' of https://github.com/neurostuff/neurostore-spec into main
2 parents 73574d6 + 4b7efb7 commit 9a29a8f

File tree

1 file changed

+197
-0
lines changed

1 file changed

+197
-0
lines changed

neurosynth-compose-openapi.yml

Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,90 @@ paths:
573573
- post
574574
- compose
575575
parameters: []
576+
/meta-analysis-jobs:
577+
post:
578+
operationId: neurosynth_compose.resources.meta_analysis_jobs.MetaAnalysisJobsResource.post
579+
summary: Submit a meta-analysis job
580+
responses:
581+
'202':
582+
description: Job accepted
583+
content:
584+
application/json:
585+
schema:
586+
$ref: '#/components/schemas/meta-analysis-job-response'
587+
'401':
588+
$ref: '#/components/responses/bad-request'
589+
'403':
590+
$ref: '#/components/responses/bad-request'
591+
'422':
592+
$ref: '#/components/responses/bad-request'
593+
'502':
594+
$ref: '#/components/responses/bad-request'
595+
requestBody:
596+
required: true
597+
content:
598+
application/json:
599+
schema:
600+
$ref: '#/components/schemas/meta-analysis-job-request'
601+
security:
602+
- JSON-Web-Token: []
603+
tags:
604+
- meta_analyses
605+
- post
606+
- compose
607+
description: Submit a meta-analysis to the compose runner service.
608+
parameters: []
609+
get:
610+
operationId: neurosynth_compose.resources.meta_analysis_jobs.MetaAnalysisJobsResource.get
611+
summary: List meta-analysis jobs for the current user
612+
responses:
613+
'200':
614+
description: OK
615+
content:
616+
application/json:
617+
schema:
618+
$ref: '#/components/schemas/meta-analysis-job-list'
619+
'401':
620+
$ref: '#/components/responses/bad-request'
621+
'502':
622+
$ref: '#/components/responses/bad-request'
623+
security:
624+
- JSON-Web-Token: []
625+
tags:
626+
- meta_analyses
627+
- get
628+
- compose
629+
description: Return cached job submissions associated with the authenticated user.
630+
'/meta-analysis-jobs/{job_id}':
631+
parameters:
632+
- schema:
633+
type: string
634+
name: job_id
635+
in: path
636+
required: true
637+
get:
638+
operationId: neurosynth_compose.resources.meta_analysis_jobs.MetaAnalysisJobResource.get
639+
summary: Get status and logs for a meta-analysis job
640+
responses:
641+
'200':
642+
description: OK
643+
content:
644+
application/json:
645+
schema:
646+
$ref: '#/components/schemas/meta-analysis-job-response'
647+
'401':
648+
$ref: '#/components/responses/bad-request'
649+
'404':
650+
$ref: '#/components/responses/bad-request'
651+
'502':
652+
$ref: '#/components/responses/bad-request'
653+
security:
654+
- JSON-Web-Token: []
655+
tags:
656+
- meta_analyses
657+
- get
658+
- compose
659+
description: Retrieve the most recent status information and logs for a submitted job.
576660
'/meta-analysis-results/{id}':
577661
parameters:
578662
- schema:
@@ -806,6 +890,9 @@ paths:
806890
$ref: '#/components/schemas/project'
807891
security:
808892
- JSON-Web-Token: []
893+
parameters:
894+
- $ref: '#/components/parameters/source_id'
895+
- $ref: '#/components/parameters/copy_annotations'
809896
tags:
810897
- projects
811898
- post
@@ -1394,6 +1481,102 @@ components:
13941481
- specification
13951482
x-tags:
13961483
- meta_analyses
1484+
meta-analysis-job-request:
1485+
title: meta-analysis-job-request
1486+
type: object
1487+
x-tags:
1488+
- meta_analyses
1489+
required:
1490+
- meta_analysis_id
1491+
properties:
1492+
meta_analysis_id:
1493+
type: string
1494+
description: Identifier of the meta-analysis to submit.
1495+
no_upload:
1496+
type: boolean
1497+
description: Skip upload of results to Neurostore/Neurovault.
1498+
default: false
1499+
meta-analysis-job-log:
1500+
title: meta-analysis-job-log
1501+
type: object
1502+
x-tags:
1503+
- meta_analyses
1504+
properties:
1505+
timestamp:
1506+
type: number
1507+
description: Epoch timestamp returned by the compose runner.
1508+
message:
1509+
type: string
1510+
description: Log message emitted by the compose runner.
1511+
meta-analysis-job-response:
1512+
title: meta-analysis-job-response
1513+
type: object
1514+
x-tags:
1515+
- meta_analyses
1516+
properties:
1517+
job_id:
1518+
type: string
1519+
description: Identifier returned by the compose runner service.
1520+
meta_analysis_id:
1521+
type: string
1522+
description: Identifier of the meta-analysis that was submitted.
1523+
artifact_prefix:
1524+
type: string
1525+
description: Artifact key prefix for logs and outputs.
1526+
status:
1527+
type: string
1528+
description: Latest known status reported by the compose runner.
1529+
status_url:
1530+
type: string
1531+
nullable: true
1532+
description: Convenience URL for polling job status.
1533+
environment:
1534+
type: string
1535+
description: Deployment environment the job was submitted to.
1536+
no_upload:
1537+
type: boolean
1538+
description: Indicates whether the upload step was skipped.
1539+
start_time:
1540+
type: string
1541+
format: date-time
1542+
nullable: true
1543+
description: Start time reported by the compose runner status endpoint.
1544+
output:
1545+
type: object
1546+
nullable: true
1547+
additionalProperties: true
1548+
description: Raw output payload returned by the compose runner.
1549+
logs:
1550+
type: array
1551+
items:
1552+
$ref: '#/components/schemas/meta-analysis-job-log'
1553+
description: Aggregated log events returned by the compose runner.
1554+
created_at:
1555+
type: string
1556+
format: date-time
1557+
nullable: true
1558+
description: Timestamp when the job entry was cached.
1559+
updated_at:
1560+
type: string
1561+
format: date-time
1562+
nullable: true
1563+
description: Timestamp when the job entry was last refreshed.
1564+
meta-analysis-job-list:
1565+
title: meta-analysis-job-list
1566+
type: object
1567+
x-tags:
1568+
- meta_analyses
1569+
properties:
1570+
results:
1571+
type: array
1572+
items:
1573+
$ref: '#/components/schemas/meta-analysis-job-response'
1574+
metadata:
1575+
type: object
1576+
properties:
1577+
count:
1578+
type: integer
1579+
description: Number of jobs in the response.
13971580
result:
13981581
title: result
13991582
type: object
@@ -1893,6 +2076,20 @@ components:
18932076
schema:
18942077
type: string
18952078
description: user id you want to filter on
2079+
source_id:
2080+
name: source_id
2081+
in: query
2082+
required: false
2083+
schema:
2084+
type: string
2085+
description: clone an existing project when creating a new project
2086+
copy_annotations:
2087+
name: copy_annotations
2088+
in: query
2089+
required: false
2090+
schema:
2091+
type: boolean
2092+
description: when cloning via `source_id`, also duplicate associated annotations
18962093
responses:
18972094
bad-request:
18982095
description: form when a request goes wrong

0 commit comments

Comments
 (0)