Blame view

php/rest/getStatus.php 361 Bytes
e5ab198f   Nathanael Jourdane   simple getStatus
1
2
3
4
5
6
7
8
<?php

/**
 * @file getStatus.php
 * @brief  REST interface for service getParameter
 *
 * @version $Id:  $
 */
e5ab198f   Nathanael Jourdane   simple getStatus
9

9b69cb35   Nathanael Jourdane   Implement batch m...
10
require_once '../config.php';
e5ab198f   Nathanael Jourdane   simple getStatus
11

9b69cb35   Nathanael Jourdane   Implement batch m...
12
if (!key_exists("id", $_GET)) {
c8dd7875   Elena.Budnik   correct input data
13
	$result = array('success' => false, 'message' => "You must provide a job id");
9b69cb35   Nathanael Jourdane   Implement batch m...
14
15
} else {
	$amda_ws = new WebServer();
c8dd7875   Elena.Budnik   correct input data
16
	$result = $amda_ws->getStatus($_GET);
9b69cb35   Nathanael Jourdane   Implement batch m...
17
18
}
echo json_encode($result);