summaryrefslogtreecommitdiffstats
path: root/src/devtools/monitor-api.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/devtools/monitor-api.json')
-rw-r--r--src/devtools/monitor-api.json55
1 files changed, 29 insertions, 26 deletions
diff --git a/src/devtools/monitor-api.json b/src/devtools/monitor-api.json
index 81d1028a..3c8867cd 100644
--- a/src/devtools/monitor-api.json
+++ b/src/devtools/monitor-api.json
@@ -301,32 +301,13 @@
}
]
}
- },
- "x-permissions": {
- "trace": {
- "permission": "urn:AGL:permission:monitor:public:trace"
- },
- "set": {
- "permission": "urn:AGL:permission:monitor:public:set"
- },
- "get": {
- "permission": "urn:AGL:permission:monitor:public:get"
- },
- "get-or-set": {
- "anyOf": [
- { "$ref": "#/components/x-permissions/get" },
- { "$ref": "#/components/x-permissions/set" }
- ]
- }
}
},
"paths": {
"/get": {
"description": "Get monitoring data.",
"get": {
- "x-permissions": {
- "$ref": "#/components/x-permissions/get-or-set"
- },
+ "x-permissions": { "session": "check" },
"parameters": [
{
"in": "query",
@@ -358,9 +339,7 @@
"/set": {
"description": "Set monitoring actions.",
"get": {
- "x-permissions": {
- "$ref": "#/components/x-permissions/set"
- },
+ "x-permissions": { "session": "check" },
"parameters": [
{
"in": "query",
@@ -386,9 +365,7 @@
"/trace": {
"description": "Set monitoring actions.",
"get": {
- "x-permissions": {
- "$ref": "#/components/x-permissions/trace"
- },
+ "x-permissions": { "session": "check" },
"parameters": [
{
"in": "query",
@@ -416,6 +393,32 @@
}
}
}
+ },
+ "/session": {
+ "description": "describes the session.",
+ "get": {
+ "x-permissions": { "session": "check" },
+ "parameters": [
+ {
+ "in": "query",
+ "name": "refresh-token",
+ "required": false,
+ "schema": { "type": "boolean" }
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "A complex object array response",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/afb-reply"
+ }
+ }
+ }
+ }
+ }
+ }
}
}
}