POST /open/setconfigurationdata
| Controller | ApiController |
| Java-Methode | setConfigurationData |
| HTTP-Methode | POST |
| Pfad | /open/setconfigurationdata |
| Erreichbarkeit | nur im Docker-Netzwerk |
| Request-Body | PluginSetConfigurationDataRequestDto |
| Response | PluginConfigDto |
Beschreibung
Sendet alle notwendigen (im ConfigurationInfo) angeforderten Daten im Mode CONFIGMODE_URL an die Plugin-Konfiguration
Request
Body: PluginSetConfigurationDataRequestDto
| Feld | Typ | ausgewertet | Bedeutung |
|---|---|---|---|
typ |
String | ja | Typ des Plugins |
configurationID |
String | ja | zu verwendende Konfigurations-ID (muss am Plugin-Service zuvor angelegt worden sein mit configurationInfo) |
configuration |
String | ja | aktueller Konfigurations-String des Plugins |
questionDto |
PluginQuestionDto | ja | Question-DTO mit Varhashes |
Response
Typ: PluginConfigDto
Fehlermeldung wenn etwas nicht korrekt funktioniert hat
Ablauf im Service
- Verwendet
PluginConfiguration:setConfigurationData,getUriGetPluginDto. - Ruft
setConfigurationDatades Plugins auf und ergänzt im ErgebnisconfigurationID,typ,name,config,tagNamesowie einpluginDto(überloadPluginDtomit leeren Parametern). - Der Controller setzt
pluginDtoUriauf den externen Endpunkt/<endpoint>/api/open/reloadplugindtoundpluginDtoTokenauf einen Leerstring. - Ohne gültige Sitzung enthält das Ergebnis
errorMsg = "cannot find connection or plugin".
Fehlerfälle
- keine eigenen Fehlerfälle im Code
Beispiel-Request
JSON-Gerüst aus den Feldern des DTOs, Werte sind Platzhalter:
{
"typ": "<typ>",
"configurationID": "<configurationID>",
"configuration": "<configuration>",
"questionDto": {
"…": "PluginQuestionDto"
}
}
Siehe auch
POST /open/configurationinfo– Liefert die Informationen welche notwendig sind um einen Konfigurationsdialog zu starten Ist die configurationID gesetzt wird eine Konfiguration gestartet und damit auch die restlichen Endpoints für die Konfiguration aktiviertPOST /<endpoint>/api/open/reloadplugindto– Rendern des Plugin-Images, Aufbau eines DTOs zur späteren JavaScript - BearbeitungPOST /open/getconfiguration– Liefert die aktuelle Konfiguration eines Plugins welches sich gerade in einem CONFIGMODE_URL Konfigurationsdialog befindet