test/post-test.php
author durandn
Fri, 03 Jul 2015 16:57:10 +0200
changeset 1037 5c0416e8bba1
parent 931 0fdce6e14748
permissions -rw-r--r--
AnnotationsList widget new features: show creation date for annotations, hide/show feature on signal trigger, filter by username

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

?>