Nuclos nuclet import REST: 4.8.0, super user, maintenance, nucletimport.sh, curl, zip, nuclet parameters. |
Language: Deutsch · English
Import nuclets automatically via REST – super-user session, maintenance service and shell script.
On this page |
From Nuclos 4.8.0, a nuclet import can be performed via the REST interface. A super user session is required to send the zipped nuclet to the maintenance service.
The import itself has no settings yet. For nuclet parameters: new ones are imported, changed ones remain unchanged, deleted ones are removed. |
curl --fail --cookie-jar cookies.txt -X POST -H "Content-Type: application/json" \
-d '{"username":"nuclos","password":""}' http://localhost:8082/nuclos-war/rest
curl --fail --cookie cookies.txt -X POST -F "file=@nuclet.zip" \
http://localhost:8082/nuclos-war/rest/maintenance/nucletimport |
A shell script (nucletimport.sh) automates the process; the Nuclos URL can be passed as the first parameter:
./nucletimport.sh http://localhost:8082/nuclos-war |