Configuration API

Get Configuration

It retrieves the extension configuration for the specific extensionId. The extension can be found in the response of Extension List.

GET/rest/extensions/configuration/extensionId
 Query parameters application(optional, default="server"): id of the application (for the application section) or "server"

"server" is reserved for server configuration

 Header auth-token: token from authentication
 Header/Parameter  tenant
 Body None
Returns ExtensionConfiguration. See also Configuration  (see "Model" section)
Required role MWP_ADMIN
Managed errors 401: insufficient privileges

Example request

curl 'https://mwp3-dev.knowledge-values.com/mwp/rest/extensions/configuration/document?application=72ac8a5d-e9b0-4eb3-9574-e6dc7fc7bff4' -H 'auth-token: 183d762a-0a10-41a0-8323-ef9a761ade60' -H 'tenant:default'

Example response

{  
   "name":"documentConf",
   "version":1,
   "disabled":false,
   "applicationConfigurationItem":[  
      {  
         "name":"pageMargins",
         "explanation":"Configuration items related to the page margins",
         "subOptions":[  
            {  
               "name":"HtmlWidth",
               "defaultValue":"0",
               "explanation":"",
               "value":"10",
               "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