Configuration API
Create connection
It stores the configuration of a connection; if the connection doesn't exist it is created
POST/rest/configuration/connections/type/name
Body none
| Query parameters | none |
| Header | auth-token: token from authentication |
| Header/Parameter | tenant |
| Body | String containing the JSON to configure the connection |
| Returns | {"success" : "true"} or {"success" : "false"} |
| Required role | MWP_ADMIN |
Example request
curl -H "auth-token:4dbd0d4f-9f44-41ab-ba68-3a51f7fd834a.local" -H "tenant:default" -X GET http://localhost:8080/mwp/rest/configuration/connections/ftp/test1
{
"name" : "test1",
"passive" : "true",
"password" : "password",
"server" : "test.server.com",
"port" : "21",
"username" : "admin"
}
Example response
{
"success" : "true"
}