test/post-test.php
author veltr
Fri, 20 Jul 2012 17:15:53 +0200
branchnew-model
changeset 928 5aadbc9f27cd
child 931 0fdce6e14748
permissions -rw-r--r--
First tests before allowing mashup annotation

<?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));

?>