Sprache: Deutsch · English
curl-Beispiele für den REST-Service – Login, BO anlegen/ändern/löschen, Statuswechsel und Logout.
REFERENZ ENTWICKLER STAND: JUL 2026 GILT FUER NUCLOS 4.2026.X
Auf dieser Seite
Praktische Beispielaufrufe für die Shell (curl). Größere JSON-Inhalte werden in Dateien ausgelagert und mit -d @datei.json übergeben.
export JSESSIONID=`curl -X POST -d '{"username":"nuclos","password":""}' \
http://localhost:8080/nuclos-war/rest -H "Accept:application/json" -H "Content-Type:application/json" \
| awk -v FS="\"" '{ print $8 }'`
curl -X POST -d @insert_order.json \ http://localhost:8080/nuclos-war/rest/bos/example_rest_Order \ -H "Cookie:JSESSIONID=$JSESSIONID" -H "Content-Type:application/json" -H "Accept:application/json"
curl -X PUT -d @update_order.json \ http://localhost:8080/nuclos-war/rest/bos/example_rest_Order/40000305 \ -H "Cookie:JSESSIONID=$JSESSIONID" -H "Content-Type:application/json"
curl -X DELETE http://localhost:8080/nuclos-war/rest/bos/example_rest_Order/40000305 -H "Cookie:JSESSIONID=$JSESSIONID"
curl -X GET http://localhost:8080/nuclos-war/rest/boStateChanges/example_rest_Order/40000302/example_rest_ExampleorderSM_State_80 -H "Cookie:JSESSIONID=$JSESSIONID"
curl -X DELETE http://localhost:8080/nuclos-war/rest -H "Cookie:JSESSIONID=$JSESSIONID"