Language: Deutsch · English
curl examples for the REST service – login, create/modify/delete BO, state change and logout.
REFERENZ DEVELOPER UPDATED: JUL 2026 APPLIES TO NUCLOS 4.2026.X
On this page
Practical example calls for the shell (curl). Larger JSON payloads are stored in files and passed with -d @file.json.
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"