-
Notifications
You must be signed in to change notification settings - Fork 13
/
openapi.yaml
120 lines (119 loc) · 3.2 KB
/
openapi.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
openapi: 3.0.3
info:
title: UPISAS
description: |-
Unified Python interface for self-adaptive system exemplars.
contact:
email: apiteam@swagger.io
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
version: 1.0.11
externalDocs:
description: Some useful link here
url: http://swagger.io
servers:
- url: https://petstore3.swagger.io/api/v3
tags:
- name: adaptation_options
description: Get adaptation options
- name: monitor
description: Get data
- name: execute
description: Request a runtime adaptation
- name: adaptation_options_schema
description: Request the schemar of adaptation_options
- name: monitor_schema
description: Request the schema of monitoring
- name: execute_schema
description: Request the schema of execution
paths:
/adaptation_options:
get:
tags:
- adaptation_options
summary: Get adaptation options from exemplar
description: Used at the beginning of an exemplar run or whenever the adaptations options are changed during a run of the exemplar
responses:
'200':
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/AdaptationOptions'
'400':
description: Invalid status value
/monitor:
get:
tags:
- monitor
summary: Get data from exemplar
description: Used for runtime monitoring
responses:
'200':
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/Monitor'
'400':
description: Invalid status value
/execute:
put:
tags:
- execute
summary: Enact a change
description: Used to adapt the exemplar at runtime
responses:
'200':
description: Successful operation
'405':
description: Invalid input
requestBody:
description: Apply an adaptation
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/Execution'
/adaptation_options_schema:
get:
tags:
- adaptation_options_schema
summary: Get the adaptation options schema
description: Get the scheme of the adaptation options
responses:
'200':
description: successful operation
'400':
description: Invalid status value
/monitor_schema:
get:
tags:
- monitor_schema
summary: Get the monitor schema
description: Get the scheme of the monitored data
responses:
'200':
description: successful operation
'400':
description: Invalid status value
/execute_schema:
get:
tags:
- execute_schema
summary: Get the execute schema
description: Get the scheme of the execute data
responses:
'200':
description: successful operation
'400':
description: Invalid status value
components:
schemas:
AdaptationOptions:
type: object
Monitor:
type: object
Execution:
type: object