Configuration API

Get all configurations

It retrieves the configuration of all the extension for the specified application

GET/rest/extensions/configuration
 Query parameters
  • application: (optional, default="server") id of the application
  • includeServerExtension: (optional, default="false") whether or not to include server configurations
  • excludeDisabledServerExtensions: (optional, default="false") whether or not to hide disabled server extensions
 Header auth-token: token from authentication
 Header/Parameter  tenant
 Body None
Returns Configuration
Required role MWP_ADMIN, KBA_MANAGER
Managed errors 401: insufficient privileges

Example request

curl 'http://localhost:8080/mwp/rest/extensions/configuration/?application=25f897e9-e2ba-4adb-99a0-77eb230ef124&excludeDisabledServerExtensions=true' -H 'auth-token: 183d762a-0a10-41a0-8323-ef9a761ade60' -H 'tenant:default'

Example response

[  
   {  
      "descriptor":{  
         "id":"document",
         "name":"Match Document Extension",
         "provider":"Knowledge Values",
         "version":0,
         "type":"consultationExtension"
      },
      "configuration":{  
         "name":"documentConf",
         "version":1,
         "disabled":false,
         "applicationConfigurationItem":[  
            {  
               "name":"pageMargins",
               "explanation":"Configuration items related to the page margins",
               "subOptions":[  
                  {  
                     "name":"HtmlWidth",
                     "defaultValue":"0",
                     "explanation":"",
                     "value":"0",
                     "mandatory":true
                  },
                  {  
                     "name":"MarginBottom",
                     "defaultValue":"0",
                     "explanation":"",
                     "value":"0",
                     "mandatory":true
                  },
                  {  
                     "name":"MarginLeft",
                     "defaultValue":"0",
                     "explanation":"",
                     "value":"25",
                     "mandatory":true
                  },
                  {  
                     "name":"MarginRight",
                     "defaultValue":"0",
                     "explanation":"",
                     "value":"25",
                     "mandatory":true
                  },
                  {  
                     "name":"MarginTop",
                     "defaultValue":"0",
                     "explanation":"",
                     "value":"25",
                     "mandatory":true
                  }
               ]
            }
         ]
      }
   }
]

Feedback