forked from eclipse-vorto/vorto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvorto_importer_plugin-2.0.yml
120 lines (119 loc) · 3.38 KB
/
vorto_importer_plugin-2.0.yml
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#
# Copyright (c) 2020 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0
#
# SPDX-License-Identifier: EPL-2.0
#
openapi: 3.0.0
info:
title: Vorto Importer API
description: REST Endpoints for providing a Vorto Importer Plugin for the Eclipse Vorto Repository. Refer to the <a target="_blank" href="https://github.com/eclipse/vorto/blob/master/plugin-sdk/plugin-api/Readme.md">Importer Plugin SDK Documentation</a>
contact:
name: Eclipse Vorto Team
url: https://www.eclipse.org/vorto
email: [email protected]
version: '2.0'
servers:
- url: /api/2/plugins/importers
variables: {}
paths:
/{pluginkey}/file_conversion:
post:
tags:
- Importer Plugin
summary: File Conversion
description: Performs the actual conversion of the source file to Vorto model(s)
operationId: FileConversion
parameters:
- name: pluginkey
in: path
description: Plugin key identifying the importer
required: true
style: simple
explode: false
schema:
type: string
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
description: File to be converted
format: binary
responses:
200:
description: ''
headers: {}
content:
application/octet-stream:
schema:
type: string
format: binary
deprecated: false
servers:
- url: /api/2/plugins/importers
variables: {}
/{pluginkey}/file_validation:
post:
tags:
- Importer Plugin
summary: File Validation
description: Performs a pre-validation check on the source file
operationId: FileValidation
parameters:
- name: pluginkey
in: path
description: Plugin Key identifying the importer
required: true
style: simple
explode: false
schema:
type: string
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
description: File to be validated
format: binary
responses:
200:
description: ''
headers: {}
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationResult'
deprecated: false
servers:
- url: /api/2/plugins/importers
variables: {}
components:
schemas:
ValidationResult:
title: ValidationResult
required:
- valid
- message
type: object
properties:
valid:
type: boolean
description: Status whether the validation was successful (true) or unsuccessful (false)
message:
type: string
description: Info Message about the validation
description: Validation status of whether the source file is valid or not
tags: []