integration/testdata/post-test.php
author ymh <ymh.work@gmail.com>
Tue, 12 Feb 2013 10:54:34 +0100
changeset 134 678b07d351ef
parent 50 9cc1b66d0880
permissions -rw-r--r--
Added tag V01.25 for changeset fe9ca5cd905e

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

?>