Auto reload the current page when the database has changed and when idling (closes #59)

This commit is contained in:
Bernd Bestel
2018-09-24 13:53:18 +02:00
parent 8540fc44f3
commit 2a0ec30bb0
6 changed files with 114 additions and 0 deletions

View File

@@ -24,6 +24,26 @@
}
],
"paths": {
"/system/get-db-changed-time": {
"get": {
"description": "Returns the time when the database was last changed",
"tags": [
"System"
],
"responses": {
"200": {
"description": "An DbChangedTimeResponse object",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DbChangedTimeResponse"
}
}
}
}
}
}
},
"/get-objects/{entity}": {
"get": {
"description": "Returns all objects of the given entity",
@@ -2009,6 +2029,15 @@
"format": "date-time"
}
}
},
"DbChangedTimeResponse": {
"type": "object",
"properties": {
"changed_time": {
"type": "string",
"format": "date-time"
}
}
}
},
"examples": {