Valetudo/backend/lib/webserver/capabilityRouters/doc/MapSnapshotCapabilityRouter...

80 lines
1.8 KiB
JSON

{
"/api/v2/robot/capabilities/MapSnapshotCapability": {
"get": {
"tags": [
"MapSnapshotCapability"
],
"summary": "Get map snapshots",
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ValetudoMapSnapshot"
}
}
}
}
}
}
},
"put": {
"tags": [
"MapSnapshotCapability"
],
"summary": "Restore map snapshot",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"restore"
]
},
"id": {
"type": "string"
}
}
}
}
}
},
"responses": {
"200": {
"$ref": "#/components/responses/200"
},
"400": {
"$ref": "#/components/responses/400"
}
}
}
},
"/api/v2/robot/capabilities/MapSnapshotCapability/properties": {
"get": {
"tags": [
"MapSnapshotCapability"
],
"summary": "Get various capability-related properties",
"responses": {
"200": {
"description": "Ok",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
}