summaryrefslogtreecommitdiff
path: root/misc/example/xml-interface.txt
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:05:14 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:05:14 +0100
commiteaad37485fe59d0306c37cc038dda6d210052910 (patch)
tree072c4b0e33d442528555b82c415f5e7a1712b2b0 /misc/example/xml-interface.txt
parent3e706c2025ecc5523e81ad649639ef2ff75e7bac (diff)
parentb80bd744ad873f6fc43018bc4bfb90677de167bd (diff)
Merge branch 'develop'
Diffstat (limited to 'misc/example/xml-interface.txt')
-rw-r--r--misc/example/xml-interface.txt25
1 files changed, 25 insertions, 0 deletions
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 '<row><UserName>2222</UserName><LastName>Meyer</LastName><FirstName>Fritz</FirstName><PhoneOffice>+49 228 1234567</PhoneOffice><VoipNr>665544</VoipNr><CellPhone>+49 171 123456</CellPhone><Fax>+49 228 1234444</Fax><Email>fritz.meier@example.com</Email><PIN>123456</PIN><PIN_LastUpdate>2010-11-22T07:09:07.5256939</PIN_LastUpdate><Photo>example.jpg</Photo></row>' | 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 '<row><PhoneOffice>+49 228 5555555</PhoneOffice><VoipNr>665544</VoipNr></row>' http://localhost:3000/api/rows/1
+
+If only the user name is known:
+curl -i -X PUT -H 'Content-Type: application/xml' -d '<row><PhoneOffice>+49 228 5555555</PhoneOffice><VoipNr>665544</VoipNr></row>' http://localhost:3000/api/rows/999999?user_name=12345 \ No newline at end of file