forked from viperproject/VerifiedSCION
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdispatcher.gen.yml
113 lines (113 loc) · 2.64 KB
/
dispatcher.gen.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
# GENERATED FILE DO NOT EDIT
openapi: 3.0.2
info:
description: Service Management API for the SCION Dispatcher
title: Dispatcher Management API
version: 0.1.0
servers:
- url: http://{host}:{port}/api/v1
variables:
host:
default: localhost
port:
default: '30441'
tags:
- name: common
description: Common API exposed by SCION services.
paths:
/info:
get:
tags:
- common
summary: Basic information page about the control service process.
operationId: get-info
responses:
'200':
description: Successful Operation
content:
text/plain:
schema:
type: string
'400':
$ref: '#/components/responses/BadRequest'
/log/level:
get:
tags:
- common
summary: Get logging level
operationId: get-log-level
responses:
'200':
description: Successful Operation
content:
application/json:
schema:
$ref: '#/components/schemas/LogLevel'
'400':
$ref: '#/components/responses/BadRequest'
put:
tags:
- common
summary: Set logging level
operationId: set-log-level
requestBody:
description: Logging Level
content:
application/json:
schema:
$ref: '#/components/schemas/LogLevel'
required: true
responses:
'200':
description: Successful Operation
content:
application/json:
schema:
$ref: '#/components/schemas/LogLevel'
'400':
$ref: '#/components/responses/BadRequest'
/config:
get:
tags:
- common
summary: Prints the TOML configuration file.
operationId: get-config
responses:
'200':
description: Successful Operation
content:
text/plain:
schema:
type: string
'400':
$ref: '#/components/responses/BadRequest'
components:
schemas:
StandardError:
type: object
properties:
error:
type: string
description: Error message
required:
- error
LogLevel:
type: object
properties:
level:
type: string
example: info
description: Logging level
enum:
- debug
- info
- error
required:
- level
responses:
BadRequest:
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/StandardError'