Blame view

php/rest/getObsDataTree.php 421 Bytes
16035364   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
  
/** 
*   @file getObsDataTree.php 
*   @brief  REST interface for service getObsDataTree
*
*   
*   @version $Id:  $ 
*/

  require_once '../config.php';

  $amda_ws = new WebServer();
  $result = $amda_ws->getObsDataTree($_GET);

   if ($result['WorkSpace']){
      foreach($result['WorkSpace'] as $key => $value) {
	echo "<$key>$value</$key>";
      }
    }
    else {
      echo $result['message']; 
    }
?>