test/post-test.php
branchnew-model
changeset 928 5aadbc9f27cd
child 931 0fdce6e14748
equal deleted inserted replaced
927:977a39c4ee80 928:5aadbc9f27cd
       
     1 <?php
       
     2 
       
     3 $data = json_decode($HTTP_RAW_POST_DATA);
       
     4 
       
     5 if (!isset($data->annotations[0]->id)) {
       
     6     $data->annotations[0]->id = uniqid("annotation_");
       
     7 }
       
     8 
       
     9 if (!isset($data->annotations[0]->type)) {
       
    10     $data->annotations[0]->type = uniqid("annotationType_");
       
    11 }
       
    12 
       
    13 print_r(json_encode($data));
       
    14 
       
    15 ?>