test/post-test.php
branchnew-model
changeset 928 5aadbc9f27cd
child 931 0fdce6e14748
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/post-test.php	Fri Jul 20 17:15:53 2012 +0200
@@ -0,0 +1,15 @@
+<?php
+
+$data = json_decode($HTTP_RAW_POST_DATA);
+
+if (!isset($data->annotations[0]->id)) {
+    $data->annotations[0]->id = uniqid("annotation_");
+}
+
+if (!isset($data->annotations[0]->type)) {
+    $data->annotations[0]->type = uniqid("annotationType_");
+}
+
+print_r(json_encode($data));
+
+?>
\ No newline at end of file