mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Auto reload the current page when the database has changed and when idling (closes #59)
This commit is contained in:
@@ -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": {
|
||||
|
Reference in New Issue
Block a user