-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample-spec.yaml
36 lines (36 loc) · 1.85 KB
/
sample-spec.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
agile-core: # service name matching the resolvable (IP reachable) name if the service container
swagger_api_spec: ./agile-core.yml
port: 3300
calls:
/device/{devideId}/status: # api path defined in the swagger api spec
get:
entityId: # list of strings | objects{path: string}
- path: url.deviceId # path where to look the value in
entityType: device # simple string, won’t get parsed
field: actions.status # simple string, won’t get parsed
method: read # simple string, won’t get parsed
/device/{deviceId}/execute/{command}: # api path defined in the swagger api spec
get:
entityId:
- path: url.deviceId # path where to look the value in
entityType: device
field:
- actions
- path: url.deviceId # path where to look the value in
- path: url.command # path where to look the value in
method: read # simple string, won’t get parsed
/devices: # api path defined in the swagger api spec
post:
entityId: # list of strings | objects{path: string}
- device # simple string, won’t get parsed
- path: body.payload.overview.id # path where to look the value in
entityType: device # simple string, won’t get parsed
field: # list of strings | objects{path: string}
- actions # simple string, won’t get parsed
- protocol # simple string, won’t get parsed
- path: body.payload.overview.protocol # path where to look the value in
method: write # simple string, won’t get parsed
agile-pap: #service name matching the resolvable (IP reachable) name if the service container
swagger_api_spec: ./pap-api.yml
port: 3200
whitelisted: yes # This is the way to make the enforcer proxy all calls wihtout checking the token or without doing any security validations