diff options
author | Tai Vuong <tvuong@audiokinetic.com> | 2017-10-27 21:40:20 -0400 |
---|---|---|
committer | Tai Vuong <tvuong@audiokinetic.com> | 2017-10-27 21:40:20 -0400 |
commit | 8a584f01b46d251fdc5de8b071eff755d99f0090 (patch) | |
tree | 625bfb4d66933b8fd18428027aa38c8a708368ce /src/ahl-apidef.json | |
parent | 9b7e1d0361d1a5eee415e453ae79925084552c68 (diff) |
Add JSON object parameters for policy functions call, fix various bug and code stabilisation
Diffstat (limited to 'src/ahl-apidef.json')
-rw-r--r-- | src/ahl-apidef.json | 60 |
1 files changed, 22 insertions, 38 deletions
diff --git a/src/ahl-apidef.json b/src/ahl-apidef.json index d486337..3ab6f4a 100644 --- a/src/ahl-apidef.json +++ b/src/ahl-apidef.json @@ -118,11 +118,9 @@ }, "x-permissions": { "streamcontrol": { "permission": "urn:AGL:permission:audio:public:streamcontrol"}, - "routingcontrol": { "permission": "urn:AGL:permission:audio:public:routingcontrol"}, + "endpointcontrol": { "permission": "urn:AGL:permission:audio:public:endpointcontrol"}, "audiostream": { "permission": "urn:AGL:permission:audio:public:audiostream"}, - "prioritysignal": { "permission": "urn:AGL:permission:audio:public:prioritysignal"}, - "soundevent": {"permission": "urn:AGL:permission:audio:public:soundevent"}, - "streammonitor": {"permission": "urn:AGL:permission:audio:public:streammonitor"} + "soundevent": {"permission": "urn:AGL:permission:audio:public:soundevent"} }, "responses": { "200": { @@ -135,9 +133,7 @@ } } }, - "400": { - "description": "Invalid arguments" - } + "400": { "description": "Invalid arguments" } } }, "paths": { @@ -185,8 +181,7 @@ "items": { "$ref": "#/components/schemas/endpoint_info"} } }, - "400": { - "$ref": "#/components/responses/400" } + "400": { "$ref": "#/components/responses/400" } } } }, @@ -265,12 +260,8 @@ } ], "responses": { - "200": { - "$ref": "#/components/responses/200" - }, - "400": { - "$ref": "#/components/responses/400" - } + "200": { "$ref": "#/components/responses/200" }, + "400": { "$ref": "#/components/responses/400" } } } }, @@ -303,9 +294,6 @@ "/get_stream_info": { "description": "Retrieve stream information", "get": { - "x-permissions": { - "$ref": "#/components/x-permissions/streamcontrol" - }, "parameters": [ { "in": "query", @@ -327,9 +315,9 @@ } }, "/set_volume": { - "description": "Set volume", + "description": "Set volume on endpoint", "get": { - "x-permissions": { "$ref": "#/components/x-permissions/streamcontrol" }, + "x-permissions": { "$ref": "#/components/x-permissions/endpointcontrol" }, "parameters": [ { "in": "query", @@ -357,7 +345,7 @@ } }, "/get_volume": { - "description": "Get volume", + "description": "Get endpoint volume", "get": { "parameters": [ { @@ -385,8 +373,8 @@ } } }, - "/get_list_properties": { - "description": "Retrieve a list of supported properties for a particular endpoint", + "/get_endpoint_info": { + "description": "Retrieve endpoint information including its properties", "get": { "parameters": [ { @@ -409,9 +397,9 @@ } }, "/set_property": { - "description": "Set property value", + "description": "Set endpoint property value", "get": { - "x-permissions": { "$ref": "#/components/x-permissions/streamcontrol" }, + "x-permissions": { "$ref": "#/components/x-permissions/endpointcontrol" }, "parameters": [ { "in": "query", @@ -445,7 +433,7 @@ } }, "/get_property": { - "description": "Get property value", + "description": "Get endpoint property value", "get": { "parameters": [ { @@ -479,8 +467,8 @@ } } }, - "/get_list_events": { - "description": "Retrieve a list of supported events for a particular audio role", + "/get_list_actions": { + "description": "Retrieve a list of supported actions for a particular audio role", "get": { "parameters": [ { @@ -491,23 +479,19 @@ } ], "responses": { - "200": { - "$ref": "#/components/responses/200" - }, - "400": { - "$ref": "#/components/responses/400" - } + "200": { "$ref": "#/components/responses/200" }, + "400": { "$ref": "#/components/responses/400" } } } }, - "/post_event": { - "description": "Post sound or audio device related event (extendable mechanism)", + "/post_action": { + "description": "Post sound or audio device related action event (extendable mechanism)", "get": { "x-permissions": { "$ref": "#/components/x-permissions/soundevent" }, "parameters": [ { "in": "query", - "name": "event_name", + "name": "action_name", "required": true, "schema": { "type": "string" } }, @@ -525,7 +509,7 @@ }, { "in": "query", - "name": "event_context", + "name": "action_context", "required": false, "schema": { "type": "object" } } |