Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MORE-1033-add-new-data-download-to-study-manager-api-yaml-open-api #240

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions openapi/StudyManagerAPI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,42 @@ paths:
'400':
description: bad request

/studies/{studyId}/export/createStudySnapshot:
parameters:
- $ref: '#/components/parameters/StudyId'
post:
tags:
- importExport
description: Create export snapshot of existing study data
operationId: createStudySnapshot
responses:
'200':
description: creating a new snapshot was successful
content:
application/json:
schema:
$ref: '#/components/schemas/StudySnapshot'
'400':
description: bad request

/studies/{studyId}/export/downloadStudySnapshot:
parameters:
- $ref: '#/components/parameters/StudyId'
- $ref: '#/components/parameters/StudySnapshotId'
get:
tags:
- importExport
description: Export Study Snapshot
operationId: exportStudySnapshot
responses:
'200':
description: downloads a created snapshot
content:
application/json:
schema:
$ref: '#/components/schemas/StudyImportExport'
'400':
description: bad request

/studies/{studyId}/import/participants:
parameters:
Expand Down Expand Up @@ -1079,6 +1115,24 @@ paths:
'404':
description: not found

/studies/{studyId}/studyDataSnapshot:
get:
tags:
- data
description: Gets the available data snapshot list of a study
operationId: getDataSnapshots
parameters:
- $ref: '#/components/parameters/StudyId'
responses:
'200':
description: List of Data Snapshots successfully fetched
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/StudySnapshot'

/studies/{studyId}/datapoints:
get:
tags:
Expand Down Expand Up @@ -1700,6 +1754,21 @@ components:
- roles
readOnly: true

StudySnapshot:
type: object
properties:
studySnapshotId:
type: integer
format: int32
name:
type: string
timestamp:
type: string
format: date-time
status:
type: string
readOnly: true

PlatformRole:
description: |
We differentiate between the following roles within a study:
Expand Down Expand Up @@ -1810,6 +1879,13 @@ components:
type: integer
format: int32
required: true
StudySnapshotId:
name: studySnapshotId
in: path
schema:
type: integer
format: int32
required: true

securitySchemes:
OAuth:
Expand Down