diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-06-12 17:52:40 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-07-10 23:59:54 +0200 |
commit | 75eb2161c641f85dded64a99cb862abfab64eff7 (patch) | |
tree | c2c6c515e45bba9ca1b2e30fe392342cab643ae0 /src/xds-apidef.json | |
parent | 197d9acab4fb5097d3dce56227c2096abdc075bd (diff) |
Improved supervisor requests & events recording
Change-Id: I4eb52820d2bec4ca4f2e3e455db7eb79d1a09d12
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'src/xds-apidef.json')
-rw-r--r-- | src/xds-apidef.json | 97 |
1 files changed, 58 insertions, 39 deletions
diff --git a/src/xds-apidef.json b/src/xds-apidef.json index 949e3e8..9ed5843 100644 --- a/src/xds-apidef.json +++ b/src/xds-apidef.json @@ -10,32 +10,28 @@ "version": 2, "prefix": "afv_", "postfix": "", - "start": null , + "start": null, "onevent": null, "init": "init", "scope": "", "private": false } }, - "servers": [ - { - "url": "ws://{host}:{port}/api/monitor", - "description": "TS caching binding", - "variables": { - "host": { - "default": "localhost" - }, - "port": { - "default": "1234" - } + "servers": [{ + "url": "ws://{host}:{port}/api/monitor", + "description": "TS caching binding", + "variables": { + "host": { + "default": "localhost" }, - "x-afb-events": [ - { - "$ref": "#/components/schemas/afb-event" - } - ] - } - ], + "port": { + "default": "1234" + } + }, + "x-afb-events": [{ + "$ref": "#/components/schemas/afb-event" + }] + }], "components": { "schemas": { "afb-reply": { @@ -47,7 +43,7 @@ "afb-reply-v2": { "title": "Generic response.", "type": "object", - "required": [ "jtype", "request" ], + "required": ["jtype", "request"], "properties": { "jtype": { "type": "string", @@ -55,28 +51,44 @@ }, "request": { "type": "object", - "required": [ "status" ], + "required": ["status"], "properties": { - "status": { "type": "string" }, - "info": { "type": "string" }, - "token": { "type": "string" }, - "uuid": { "type": "string" }, - "reqid": { "type": "string" } + "status": { + "type": "string" + }, + "info": { + "type": "string" + }, + "token": { + "type": "string" + }, + "uuid": { + "type": "string" + }, + "reqid": { + "type": "string" + } } }, - "response": { "type": "object" } + "response": { + "type": "object" + } } }, "afb-event-v2": { "type": "object", - "required": [ "jtype", "event" ], + "required": ["jtype", "event"], "properties": { "jtype": { "type": "string", "const": "afb-event" }, - "event": { "type": "string" }, - "data": { "type": "object" } + "event": { + "type": "string" + }, + "data": { + "type": "object" + } } } }, @@ -89,16 +101,16 @@ } }, "responses": { - "200": { - "description": "A complex object array response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/afb-reply" - } - } + "200": { + "description": "A complex object array response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/afb-reply" } } + } + } } }, "paths": { @@ -137,8 +149,15 @@ }, "parameters": [{ "in": "query", + "name": "pid", + "required": false, + "schema": { + "type": "integer" + } + }, { + "in": "query", "name": "ws", - "required": true, + "required": false, "schema": { "type": "string" } |