The application state API contains several informations about the application. This API was implemented for interface testing, where the tests has to check the application before they can be run.
Provides a snapshot of the current application state.
URL: | /editor/index/applicationstate |
Available Methods: | GET |
Specialities: | - |
JSON Example
{ "isUptodate": true, "version": "development", "branch": "## master...origin/master", "worker": { "scheduled": 0, "waiting": 0, "running": 0, "defunct": 0, "done": 19 }, "pluginsLoaded": [ "editor_Plugins_Debug_Bootstrap", "editor_Plugins_Transit_Bootstrap", "editor_Plugins_SegmentStatistics_Bootstrap", "editor_Plugins_TermTagger_Bootstrap", "editor_Plugins_MtComparEval_Bootstrap" ], "termtagger": { "configured": { "default": [ "http://localhost:9001" ], "import": [ ], "gui": [ ] }, "runningAll": false, "running": { "http://localhost:9001": false } } }
Resource Layout
Name | Type | Info |
isUptodate | boolean | returns if application is uptodate, false if there are updates available. |
version | string | contains application version on installed instances, "development" on developer machines. |
branch | string | only available if version is development, contains the branch of the master repository. |
worker | object | contains informations about the workers. Displays per worker state, how many workers are in this state. |
pluginsLoaded | array | contains the loaded Plugin classes. |
termtagger | object | detailed object information see below, for termtagger in general go here. |
termtagger.configured | object | contains the configured termtagger instances, grouped by type. |
termtagger.runningAll | boolean | returns true if all configured termtaggers are running, false otherwise. |
termtagger.running | object | contains the configured termtagger URL as key, and true (if running) or false (if not) as value. |