getStatus.php 362 Bytes
<?php

/**
 * @file getStatus.php
 * @brief  REST interface for service getParameter
 *
 * @version $Id:  $
 */

require_once '../config.php';

if (!key_exists("id", $_GET)) {
	$result = array('success' => false, 'message' => "You must provide a job id.");
} else {
	$amda_ws = new WebServer();
	$result = $amda_ws->getStatus($_GET);
}
echo json_encode($result);