Get Server and REST API configuration
This service provides various information about the server configuration and REST API.
GET /api/rest/config
Response description
Section setup
Sub-section connection
Property JWT
Boolean.true means JWT authentification is enabled
false means JWT authentication is disabled
Sub-section sessionful 2021.4
Property allowed
Boolean.true means sessionful mode can be handled by request
false means sessionful mode can’t be handler by request
Property default
Boolean.true means sessionful mode is activated by default
false means sessionful mode isn’t activated by default
Sub-section sessionauth
Property allowed
Boolean.true means sessionauth mode can be handled by request
false means sessionauth mode can’t be handler by request
Property default
Boolean.true means sessionauth mode is activated by default
false means sessionauth mode isn’t activated by default
Property cookie
Boolean.true means cookieauth mode is activated
false means cookieauth mode is not activated
Property maxage
Integer (seconds). Value of plugin parameter tokenMaxAge, i.e. the maximum age of JWT tokens in seconds (null means there isn’t any value, and the maximum age is infinite).Property tokentime
Integer (seconds). Value of plugin parameter tokenLongLifeTime, i.e. the JWT refresh token life time in seconds.
Property damservices
Booleantrue means dam services ( /api/rest/dam/* ) are available
false means dam services aren’t available
Property imagingservices
Booleantrue means imaging services are available
false means imaging services aren’t available
Sub-section charsets
Property response
String, REST API response charset (usually UTF-8)Property content
String, REST API content charset (usually UTF-8)
Sub-section query
Sub-section config
Property i18nQuery
Boolean.true means i18nQuery parameter default is true
false means i18nQuery parameter default is false
Sub-section request
Property ignoreQuery
Boolean.true means ignoreQuery parameter default is true (this setting to true means that in case of an unknown property in a request we prefer to ignore the query rather than raise an exception)
false means ignoreQuery parameter default is false
Property canRetrieveCaption
Boolean.true means that rules of type canRetrieveCaption are taken into account when retrieving relational data from dam services, i.e. this data may be partial
false means tthat rules of type canRetrieveCaption are ignored
Property dxm 2021.3
Boolean.true means dxm is activated
false means dxm is not activated
Property dxmCookie 2021.3
Boolean. (Should be always equals to property dxm value)true means API cookie domain is set to be compliant with DXM
false means API cookie domain is default
Property maxAgeControl 2021.3
Boolean.true means client agents are allowed to specify their own cache max-age in request.
false means client agents are not allowed to specify their own cache max-age in request.
Section versions
Property engine
String. The version of the Wedia server engine.Property plugin
String. The version of the REST API pluginProperty api
String. The default version of the REST APIProperty apicfg
String. The version of configuration of the REST API servicesProperty $faces 11.30
String, temporary. The default version of $faces data in REST API services responsesProperty $simu-metadata 11.30
String, temporary. The default version of mass import/tagging metadata in REST API services responses
Section mode
Property server
String.dev means server is running in development mode
prod means server is running in production mode
Property plugin
String.dev means plugin is running in development mode
default means plugin is running in same mode than server
Property rundebug
Boolean.true means the server is running in debug mode
false means the server is running in runtime mode
Property locale
Default indexing locale
Response sample (CLUB-WED)
{
"setup": {
"connection": {
"JWT": true,
"sessionful": {
"allowed": false,
"default": false
},
"sessionauth": {
"allowed": true,
"default": false
},
"cookie": true,
"maxage": null,
"tokentime": 86400
},
"damServices": true,
"imagingServices": true,
"charsets": {
"response": "UTF-8",
"content": "UTF-8"
},
"query": {
"config": {
"i18nQuery": false
},
"request": {
"ignoreQuery": false,
"canRetrieveCaption": false
}
},
"dxm": false,
"dxmCookie": false,
"cdn": false,
"maxAgeControl": true
},
"versions": {
"engine": "WEDIA 2021.5.2",
"plugin": "2021.5.2",
"api": "2.3",
"apicfg": "1.0",
"$faces": "V2",
"$simu-metadata": "V2"
},
"mode": {
"server": "dev",
"plugin": "default",
"rundebug": false
},
"locale": "en",
"defaultLockTimeMs": 30000,
"version": "2.3",
"status": 200,
"time": 7
}
Â