forked from IQSS/dataverse-ddi-converter-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ddi-converter-tool.yaml
93 lines (90 loc) · 2.41 KB
/
ddi-converter-tool.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
openapi: 3.0.0
servers:
- url: 'http://127.0.0.1:8520/api'
info:
description: |
DDI Converter Tool is an open source software for converting a DDI xml to Dataverse Metadata and its files\
[DDI Converter Tool Github](https://github.com/ekoi/ddi-converter-tool).
version: "1.0.0"
title: DDI Converter Tool
termsOfService: 'http://swagger.io/terms/'
contact:
email: eko.indarto@dans.knaw.nl
license:
name: Apache 2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
paths:
/convert/{dv_target}/{api_token}:
post:
summary: Convert DDI and ingest it to target dataverse
operationId: convertDDI
parameters:
# - name: api_key
# in: header
# schema:
# type: string
- name: dv_target
in: path
required: true
description: The target of dataverse alias or id (e.g. root)
schema:
type: string
- name: api_token
in: path
description: Users' authenication token for the api
required: true
schema:
type: string
- in: query
name: xsl_url
description: XSL URL
required: true
schema:
type: string
- in: query
name: author_name
description: Author name
schema:
type: string
- in: query
name: author_affiliation
description: Author Affiliation
schema:
type: string
- in: query
name: contact_name
description: Dataset Contact Name
schema:
type: string
- in: query
name: contact_email
description: Dataset Contact Email
schema:
type: string
- in: query
name: subject
description: Dataset Subject
schema:
type: string
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
# id:
# type: string
ddi_file:
type: string
format: binary
# json_file:
# type: string
# format: binary
required: true
responses:
'201':
description: DDI succesfully converted and ingested.
'400':
description: DDI couldn't have been converted or ingested.
'405':
description: Invalid input