-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDynamic-Content-Api.yaml
137 lines (131 loc) · 3.25 KB
/
Dynamic-Content-Api.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
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
---
openapi: 3.0.0
# General Information
info:
title: Enflex.IT - Dynamic Content Api
description: This is the Definition of the Api to dynamically fetch content for any enflex.it application
contact:
name: EnFlex.IT
url: https://www.enflex.it
email: admin@enflex.it
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
version: 0.0.1
# Servers
servers:
- url: https://enflex.it
# Security
# security:
# - bearerAuth: []
# Tags to classifiy / organize paths
# tags:
# The paths of a REST-API
paths:
/tmp:
get:
responses:
default:
description: temporary path, so openapi file gets parsed correctly
# Component definition such as schemas, securitySchemes and so on
components:
schemas:
AbstractSiteContent:
type: object
properties:
uniqueContentID:
type: integer
editable:
type: boolean
updatePeriodInSeconds:
type: integer
required:
- uniqueContentID
- editable
- updatePeriodInSeconds
SiteContentMedia:
allOf:
- $ref: "#/components/schemas/AbstractSiteContent"
- type: object
- properties:
mimeType:
type: string
- required:
- mimeType
SiteContentText:
allOf:
- $ref: "#/components/schemas/SiteContentMedia"
- type: object
- properties:
text:
type: string
- required:
- text
SiteContentImage:
allOf:
- $ref: "#/components/schemas/SiteContentMedia"
- type: object
- properties:
dataInB64:
type: string
- required:
- dataInB64
AbstractSiteContentChart:
allOf:
- $ref: "#/components/schemas/AbstractSiteContent"
- type: object
SiteContentXYChart:
allOf:
- $ref: "#/components/schemas/AbstractSiteContentChart"
- type: object
SiteContentTimeSeriesChart:
allOf:
- $ref: "#/components/schemas/AbstractSiteContentChart"
- type: object
ValueType:
type: string
enum: [INTEGER, BOOLEAN, STRING, LONG, DOUBLE]
SiteContentProperties:
allOf:
- $ref: "#/components/schemas/AbstractSiteContent"
- type: object
- properties:
key:
type: string
value:
type: string
valueType:
$ref: "#/components/schemas/ValueType"
- required:
- key
- value
- valueType
RowVector:
type: array
items:
type: string
SiteContentTable:
allOf:
- $ref: "#/components/schemas/AbstractSiteContent"
- type: object
- properties:
header:
type: array
items:
type: string
dataType:
type: array
items:
$ref: "#/components/schemas/ValueType"
data:
type: array
items:
$ref: "#/components/schemas/RowVector"
- required:
- header
- dataType
- data
# securitySchemes:
# basicAuth:
# type: http
# scheme: basic