| changeset 53 | 0cfd113f6a59 |
| parent 52 | 9409e6ebf891 |
| child 54 | e848185b5b7f |
--- a/metadataplayer/post-test.php Fri Dec 14 17:15:09 2012 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -<?php - -$data = json_decode(file_get_contents("php://input")); - -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