Admin functions
There are a number of endpoints which are specific to administrators: understanding the configuration of the particular instance; discovering the avaiable plugins, etc.
Currently logged in users¶
This endpoint returns a list of all logged in users.
If called in post
mode, you can pass in user credentials, rather than basing on an existing session.
Configuration¶
To find out more about the current instance of the catalogue: what version is running; the version of Java that's runing; the JDBC drivers currently available; call the following endpoint:
Modules¶
To find out which modules are installed, call the following endpoint:
The post
version of the endpoint can be called in order to pass authentication credentials at the same time:
Plugins¶
To find out which plugins are currently installed, use one of the following endpoints:
System actions¶
This endpoint forces the rebuild of the indexes used for searching (built using Hibernate Search and Lucene). This is only necessary when synchronisation between database and indexes is lost; when the search functionality is not returning correct results. Authentication credentials can be passed as part of the request body.
Properties¶
There are a number of system-wide properties that can be updated by administrators, such as the text of any emails sent and the email address from which catalogue emails appear to be sent.
Properties are composed of keys and values. Keys can be any string with the following restrictions:
- Must be lowercase alpha characters
- No spaces are allowed
- May include periods ('.') and/or underscores ('_')
- Must be unique
Getting properties¶
Properties can be viewed at the following endpoint:
If successful, the response body will list the available properties:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
Notice that properties contain a publiclyVisible
flag. This is because properties can be created to either be public or restricted to administrators/systems
(the default being false
). Only an authenticated session can use the endpoint above, however an anonymous session may use this endpoint to list all publicly
available properties:
To access a single property, this endpoint is provided:
Created, updating and deleting¶
Properties can be created as follows:
1 2 3 4 5 6 |
|
If successful, the new property is returned in the response body including the new property id
.
1 2 3 4 5 6 7 8 9 10 |
|
The property can then be updated with the put
endpoint:
1 2 3 4 5 6 7 |
|
And deleted with the delete
endpoint:
Data Models¶
The following endpoints provide paginated lists of Data Models (for cleaning / monitoring processes). They list those models which have been deleted, superseded by a new model, and superseded by new documentation, respectively:
Emails¶
Retrieve the list of emails (recipient, message, date/time) sent by the system: