test/post-test.php
branchnew-model
changeset 931 0fdce6e14748
parent 928 5aadbc9f27cd
equal deleted inserted replaced
930:165f236e42f2 931:0fdce6e14748
     1 <?php
     1 <?php
     2 
     2 
     3 $data = json_decode($HTTP_RAW_POST_DATA);
     3 $data = json_decode(file_get_contents("php://input"));
     4 
     4 
     5 if (!isset($data->annotations[0]->id)) {
     5 if (!isset($data->annotations[0]->id)) {
     6     $data->annotations[0]->id = uniqid("annotation_");
     6     $data->annotations[0]->id = uniqid("annotation_");
     7 }
     7 }
     8 
     8