mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
docs: restructured OpenAPI docs (2)
This commit is contained in:
parent
c313246ddd
commit
e0242dc544
72 changed files with 203 additions and 86 deletions
|
@ -1,3 +1,6 @@
|
|||
---
|
||||
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
|
||||
|
||||
type: object
|
||||
title: Format Object
|
||||
required:
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
|
||||
|
||||
description: |
|
||||
The payload format which is used to encode and decode exchanged messages.
|
||||
|
|
|
@ -6,4 +6,4 @@ allOf:
|
|||
properties:
|
||||
delimiter:
|
||||
type: string
|
||||
- $ref: common.yaml
|
||||
- $ref: ../format.yaml
|
||||
|
|
|
@ -38,4 +38,4 @@ allOf:
|
|||
default: false
|
||||
description:
|
||||
Escape the `/` characters in strings with `\/`.
|
||||
- $ref: common.yaml
|
||||
- $ref: ../format.yaml
|
||||
|
|
|
@ -6,4 +6,4 @@ allOf:
|
|||
properties:
|
||||
separator:
|
||||
type: string
|
||||
- $ref: common.yaml
|
||||
- $ref: ../format.yaml
|
||||
|
|
|
@ -6,4 +6,4 @@ allOf:
|
|||
properties:
|
||||
delimiter:
|
||||
type: string
|
||||
- $ref: common.yaml
|
||||
- $ref: ../format.yaml
|
||||
|
|
|
@ -6,4 +6,4 @@ allOf:
|
|||
properties:
|
||||
delimiter:
|
||||
type: string
|
||||
- $ref: common.yaml
|
||||
- $ref: ../format.yaml
|
||||
|
|
|
@ -6,4 +6,4 @@ allOf:
|
|||
properties:
|
||||
delimiter:
|
||||
type: string
|
||||
- $ref: common.yaml
|
||||
- $ref: ../format.yaml
|
||||
|
|
|
@ -6,4 +6,4 @@ allOf:
|
|||
properties:
|
||||
delimiter:
|
||||
type: string
|
||||
- $ref: common.yaml
|
||||
- $ref: ../format.yaml
|
||||
|
|
|
@ -2,16 +2,9 @@
|
|||
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
|
||||
|
||||
type: object
|
||||
|
||||
title: Hook
|
||||
|
||||
required:
|
||||
- type
|
||||
|
||||
properties:
|
||||
type:
|
||||
type: string
|
||||
|
||||
enabled:
|
||||
type: boolean
|
||||
default: true
|
||||
|
|
6
doc/openapi/components/schemas/config/hook_list.yaml
Normal file
6
doc/openapi/components/schemas/config/hook_list.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
|
||||
|
||||
type: array
|
||||
items:
|
||||
$ref: hook_spec.yaml
|
38
doc/openapi/components/schemas/config/hook_obj.yaml
Normal file
38
doc/openapi/components/schemas/config/hook_obj.yaml
Normal file
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
|
||||
|
||||
type: object
|
||||
title: Format Object
|
||||
required:
|
||||
- type
|
||||
properties:
|
||||
type:
|
||||
type: string
|
||||
discriminator:
|
||||
propertyName: type
|
||||
mapping:
|
||||
average: hooks/_average.yaml
|
||||
cast: hooks/_cast.yaml
|
||||
decimate: hooks/_decimate.yaml
|
||||
dp: hooks/_dp.yaml
|
||||
drop: hooks/_drop.yaml
|
||||
dump: hooks/_dump.yaml
|
||||
ebm: hooks/_ebm.yaml
|
||||
fix: hooks/_fix.yaml
|
||||
gate: hooks/_gate.yaml
|
||||
jitter_calc: hooks/_jitter_calc.yaml
|
||||
limit_rate: hooks/_limit_rate.yaml
|
||||
limit_value: hooks/_limit_value.yaml
|
||||
lua: hooks/_lua.yaml
|
||||
ma: hooks/_ma.yaml
|
||||
pmu_dft: hooks/_pmu_dft.yaml
|
||||
pps_ts: hooks/_pps_ts.yaml
|
||||
print: hooks/_print.yaml
|
||||
restart: hooks/_restart.yaml
|
||||
rms: hooks/_rms.yaml
|
||||
scale: hooks/_scale.yaml
|
||||
shift_seq: hooks/_shift_seq.yaml
|
||||
shift_ts: hooks/_shift_ts.yaml
|
||||
skip_first: hooks/_skip_first.yaml
|
||||
stats: hooks/_stats.yaml
|
||||
ts: hooks/_ts.yaml
|
33
doc/openapi/components/schemas/config/hook_spec.yaml
Normal file
33
doc/openapi/components/schemas/config/hook_spec.yaml
Normal file
|
@ -0,0 +1,33 @@
|
|||
---
|
||||
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
|
||||
|
||||
oneOf:
|
||||
- $ref: hook_obj.yaml
|
||||
- title: Hook Name
|
||||
type: string
|
||||
enum:
|
||||
- average
|
||||
- cast
|
||||
- decimate
|
||||
- dp
|
||||
- drop
|
||||
- dump
|
||||
- ebm
|
||||
- fix
|
||||
- gate
|
||||
- jitter_calc
|
||||
- limit_rate
|
||||
- limit_value
|
||||
- lua
|
||||
- ma
|
||||
- pmu_dft
|
||||
- pps_ts
|
||||
- print
|
||||
- restart
|
||||
- rms
|
||||
- scale
|
||||
- shift_seq
|
||||
- shift_ts
|
||||
- skip_first
|
||||
- stats
|
||||
- ts
|
|
@ -1,36 +0,0 @@
|
|||
---
|
||||
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
|
||||
|
||||
type: array
|
||||
items:
|
||||
oneOf:
|
||||
- $ref: hook.yaml
|
||||
- type: string
|
||||
title: Hook Name
|
||||
description: Only the hook type is provided. No other settings can be configured.
|
||||
enum:
|
||||
- average
|
||||
- cast
|
||||
- decimate
|
||||
- dp
|
||||
- drop
|
||||
- dump
|
||||
- ebm
|
||||
- fix
|
||||
- gate
|
||||
- jitter_calc
|
||||
- limit_rate
|
||||
- limit_value
|
||||
- lua
|
||||
- ma
|
||||
- pmu_dft
|
||||
- pps_ts
|
||||
- print
|
||||
- restart
|
||||
- rms
|
||||
- scale
|
||||
- shift_seq
|
||||
- shift_ts
|
||||
- skip_first
|
||||
- stats
|
||||
- ts
|
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: average.yaml
|
3
doc/openapi/components/schemas/config/hooks/_cast.yaml
Normal file
3
doc/openapi/components/schemas/config/hooks/_cast.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: cast.yaml
|
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: decimate.yaml
|
3
doc/openapi/components/schemas/config/hooks/_dp.yaml
Normal file
3
doc/openapi/components/schemas/config/hooks/_dp.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: dp.yaml
|
3
doc/openapi/components/schemas/config/hooks/_drop.yaml
Normal file
3
doc/openapi/components/schemas/config/hooks/_drop.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: drop.yaml
|
3
doc/openapi/components/schemas/config/hooks/_dump.yaml
Normal file
3
doc/openapi/components/schemas/config/hooks/_dump.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: dump.yaml
|
3
doc/openapi/components/schemas/config/hooks/_ebm.yaml
Normal file
3
doc/openapi/components/schemas/config/hooks/_ebm.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: ebm.yaml
|
3
doc/openapi/components/schemas/config/hooks/_fix.yaml
Normal file
3
doc/openapi/components/schemas/config/hooks/_fix.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: fix.yaml
|
3
doc/openapi/components/schemas/config/hooks/_gate.yaml
Normal file
3
doc/openapi/components/schemas/config/hooks/_gate.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: gate.yaml
|
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: jitter_calc.yaml
|
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: limit_rate.yaml
|
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: limit_value.yaml
|
3
doc/openapi/components/schemas/config/hooks/_lua.yaml
Normal file
3
doc/openapi/components/schemas/config/hooks/_lua.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: lua.yaml
|
3
doc/openapi/components/schemas/config/hooks/_ma.yaml
Normal file
3
doc/openapi/components/schemas/config/hooks/_ma.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: ma.yaml
|
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: pmu_dft.yaml
|
3
doc/openapi/components/schemas/config/hooks/_pps_ts.yaml
Normal file
3
doc/openapi/components/schemas/config/hooks/_pps_ts.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: pps_ts.yaml
|
3
doc/openapi/components/schemas/config/hooks/_print.yaml
Normal file
3
doc/openapi/components/schemas/config/hooks/_print.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: print.yaml
|
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: restart.yaml
|
3
doc/openapi/components/schemas/config/hooks/_rms.yaml
Normal file
3
doc/openapi/components/schemas/config/hooks/_rms.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: rms.yaml
|
3
doc/openapi/components/schemas/config/hooks/_scale.yaml
Normal file
3
doc/openapi/components/schemas/config/hooks/_scale.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: scale.yaml
|
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: shift_seq.yaml
|
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: shift_ts.yaml
|
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: skip_first.yaml
|
3
doc/openapi/components/schemas/config/hooks/_stats.yaml
Normal file
3
doc/openapi/components/schemas/config/hooks/_stats.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: stats.yaml
|
3
doc/openapi/components/schemas/config/hooks/_ts.yaml
Normal file
3
doc/openapi/components/schemas/config/hooks/_ts.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
allOf:
|
||||
- $ref: ../hook.yaml
|
||||
- $ref: ts.yaml
|
|
@ -8,16 +8,20 @@ properties:
|
|||
default: 80
|
||||
title: Listening port
|
||||
description: |
|
||||
Listening port for HTTP connections.
|
||||
The TCP port number on which HTTP & WebSocket server.
|
||||
|
||||
ssl_cert:
|
||||
type: string
|
||||
title: SSL Certificate Path
|
||||
description: Path to an SSL certificate
|
||||
description: |
|
||||
The public x509 certificate used for server-side SSL encryption.
|
||||
|
||||
example: /etc/ssl/certs/mycert.pem
|
||||
|
||||
ssl_private_key:
|
||||
type: string
|
||||
title: SSL Private Key Path
|
||||
description: Path to an SSL private key
|
||||
description: |
|
||||
The private x509 key used for server-side SSL encryption.
|
||||
|
||||
example: /etc/ssl/private/mykey.pem
|
||||
|
|
|
@ -14,7 +14,7 @@ properties:
|
|||
The value of this setting determines how many samples will be combined into one packet.
|
||||
|
||||
hooks:
|
||||
$ref: hooklist.yaml
|
||||
$ref: hook_list.yaml
|
||||
|
||||
builtin:
|
||||
type: boolean
|
||||
|
@ -34,7 +34,7 @@ properties:
|
|||
$ref: signallist.yaml
|
||||
|
||||
hooks:
|
||||
$ref: hooklist.yaml
|
||||
$ref: hook_list.yaml
|
||||
|
||||
out:
|
||||
type: object
|
||||
|
@ -44,7 +44,7 @@ properties:
|
|||
type: integer
|
||||
|
||||
hooks:
|
||||
$ref: hooklist.yaml
|
||||
$ref: hook_list.yaml
|
||||
|
||||
netem:
|
||||
$ref: netem.yaml
|
|
@ -45,4 +45,4 @@ allOf:
|
|||
client_key:
|
||||
default: "/path/to/client.key"
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -6,4 +6,4 @@ allOf:
|
|||
properties:
|
||||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -6,4 +6,4 @@ allOf:
|
|||
properties:
|
||||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema
|
||||
|
||||
allOf:
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
- type: object
|
||||
properties:
|
||||
format:
|
||||
|
|
|
@ -46,4 +46,4 @@ allOf:
|
|||
A object of key/value pairs of environemnt variables which should be passed to the sub-process in addition to the parent environment.
|
||||
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -29,4 +29,4 @@ allOf:
|
|||
```
|
||||
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -7,4 +7,4 @@ allOf:
|
|||
format:
|
||||
$ref: ../format_spec.yaml
|
||||
|
||||
- $ref: common.yaml
|
||||
- $ref: ../node.yaml
|
||||
|
|
|
@ -86,4 +86,4 @@ properties:
|
|||
When this flag is set, the original sequence number from the source node will be used when multiplexing the nodes.
|
||||
|
||||
hooks:
|
||||
$ref: hooklist.yaml
|
||||
$ref: hook_list.yaml
|
||||
|
|
Loading…
Add table
Reference in a new issue