Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Kommentar: Session ID in Header per Cookie

...

Inhalt
excludeInhalt

Login

Codeblock
export SESSIONIDJSESSIONID=`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  }'`

...

Codeblock
curl -X POST -d @insert_order_2002.json http://localhost:8080/nuclos-war/rest/bos/example_rest_Order -H "sessionIdCookie:$SESSIONIDJSESSIONID=$JSESSIONID" -H "Content-Type:application/json" -H "Accept:application/json"

...

Codeblock
curl -X PUT -d @update_order_1012.json http://localhost:8080/nuclos-war/rest/bos/example_rest_Order/40000305 -H "sessionIdCookie:$SESSIONIDJSESSIONID=$JSESSIONID" -H "Content-Type:application/json" -H "Accept:application/json"

...

Codeblock
curl -X PUT -d @update2_order_1012.json http://localhost:8080/nuclos-war/rest/bos/example_rest_Order/40000305 -H "sessionIdCookie:$SESSIONIDJSESSIONID=$JSESSIONID" -H "Content-Type:application/json" -H "Accept:application/json"

...

Codeblock
curl -X DELETE http://localhost:8080/nuclos-war/rest/bos/example_rest_Order/40000305 -H "sessionIdCookie:$SESSIONIDJSESSIONID=$JSESSIONID"

 

Statuswechsel einer Order

...

Codeblock
curl -X GET http://localhost:8080/nuclos-war/rest/boStateChanges/example_rest_Order/40000302/example_rest_ExampleorderSM_State_80 -H "sessionIdCookie:$SESSIONIDJSESSIONID=$JSESSIONID"

 

Logout

Codeblock
curl -X DELETE http://localhost:8080/nuclos-war/rest -H "sessionIdCookie:$SESSIONIDJSESSIONID=$JSESSIONID"