From b80bd744ad873f6fc43018bc4bfb90677de167bd Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Mon, 17 Dec 2012 12:01:45 +0100 Subject: Start of GS5. --- misc/example/xml-interface.txt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 misc/example/xml-interface.txt (limited to 'misc/example/xml-interface.txt') diff --git a/misc/example/xml-interface.txt b/misc/example/xml-interface.txt new file mode 100644 index 0000000..9f05540 --- /dev/null +++ b/misc/example/xml-interface.txt @@ -0,0 +1,25 @@ +User anlegen +============ + +echo '2222MeyerFritz+49 228 1234567665544+49 171 123456+49 228 1234444fritz.meier@example.com1234562010-11-22T07:09:07.5256939example.jpg' | curl -X POST -H 'Content-type: text/xml' -d @- http://0.0.0.0:3000/api/rows + +Userdaten abrufen +================= +curl -H 'Content-type: text/xml' http://0.0.0.0:3000/api/rows/1.xml + +User löschen +============ + +curl -i -H "Accept: application/xml" -X DELETE http://0.0.0.0:3000/api/rows/1 + +If only the user name is known: +curl -i -H "Accept: application/xml" -X DELETE http://0.0.0.0:3000/api/rows/999999?user_name=12345 + + +User updaten +============ + +curl -i -X PUT -H 'Content-Type: application/xml' -d '+49 228 5555555665544' http://localhost:3000/api/rows/1 + +If only the user name is known: +curl -i -X PUT -H 'Content-Type: application/xml' -d '+49 228 5555555665544' http://localhost:3000/api/rows/999999?user_name=12345 \ No newline at end of file -- cgit v1.2.3