Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Codeblock
export SESSIONID=`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 $4  }'`

 

Neue Order anlegen

Anhang insert_order_2002.json
Codeblock
curl -X POST -d @insert_order_2002.json http://localhost:8080/nuclos-war/rest/bos/example_rest_Order -H "sessionId:$SESSIONID" -H "Content-Type:application/json" -H "Accept:application/json"

 

Vorhandene Order ändern

Anhang update_order_1012.json
  • Attribut node wird gestzt
  • Unterformular position erhält einen neuen Eintrag und ein vorhandener wird geändert
Codeblock
curl -X PUT -d @update_order_1012.json http://localhost:8080/nuclos-war/rest/bos/example_rest_Order/40000305 -H "sessionId:$SESSIONID" -H "Content-Type:application/json" -H "Accept:application/json"

...