mirror of https://github.com/Hypfer/Valetudo.git
80 lines
1.8 KiB
JSON
80 lines
1.8 KiB
JSON
{
|
|
"/api/v2/robot/capabilities/PendingMapChangeHandlingCapability": {
|
|
"get": {
|
|
"tags": [
|
|
"PendingMapChangeHandlingCapability"
|
|
],
|
|
"summary": "Check if there is a pending map change",
|
|
"responses": {
|
|
"200": {
|
|
"description": "Ok",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"enabled": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"put": {
|
|
"tags": [
|
|
"PendingMapChangeHandlingCapability"
|
|
],
|
|
"summary": "Accept or reject a pending map change",
|
|
"requestBody": {
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"action": {
|
|
"type": "string",
|
|
"enum": [
|
|
"accept",
|
|
"reject"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"$ref": "#/components/responses/200"
|
|
},
|
|
"400": {
|
|
"$ref": "#/components/responses/400"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/v2/robot/capabilities/PendingMapChangeHandlingCapability/properties": {
|
|
"get": {
|
|
"tags": [
|
|
"PendingMapChangeHandlingCapability"
|
|
],
|
|
"summary": "Get various capability-related properties",
|
|
"responses": {
|
|
"200": {
|
|
"description": "Ok",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|