Skip to content

Commit

Permalink
Added convert dans bag commmand
Browse files Browse the repository at this point in the history
  • Loading branch information
janvanmansum committed Nov 22, 2024
1 parent 59c11b5 commit 2cafdb0
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion src/main/openapi/dd-dataverse-ingest-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ paths:
post:
summary: Create a new ingest job
requestBody:
description: The path to the deposit or deposit batch
description: An ingest command object
required: true
content:
application/json:
Expand Down Expand Up @@ -81,6 +81,24 @@ paths:
items:
$ref: '#/components/schemas/ImportJobStatus'

/convert-dans-bag:
post:
summary: Convert a DANS deposit to an ingest depost
requestBody:
description: A convert command object
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ConvertDansBagCommand'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ConversionResult'

components:
schemas:
ImportCommand:
Expand Down Expand Up @@ -116,3 +134,27 @@ components:
- RUNNING
- DONE
- FAILED
ConvertDansBagCommand:
type: object
properties:
path:
type: string
format: path
description: The path to the deposit or deposit batch
singleObject:
type: boolean
default: false
description: Whether the import is for a single deposit or a batch
ConversionResult:
type: object
properties:
status:
type: string
description: The status of the conversion
enum:
- SUCCESS
- FAILED
message:
type: string
description: A message indicating the result of the conversion
# TODO: maybe extend with list of problems

0 comments on commit 2cafdb0

Please sign in to comment.