Commit f3e98005e34f6279a02cb5d3f5a0d88281dce76b

Authored by Elena.Budnik
1 parent 99a4a488

index.html + header json for hapi

src/DDSERVICES/HAPI/capabilities.php
... ... @@ -6,5 +6,6 @@
6 6 $response["msg"] = "ok";
7 7 $response["outputFormats"] = array("csv");
8 8  
  9 + header('Content-Type: application/json');
9 10 exit(json_encode($response));
10 11 ?>
... ...
src/DDSERVICES/HAPI/catalog.php
... ... @@ -13,6 +13,7 @@
13 13 }
14 14  
15 15 $response["catalog"] = $catalog;
16   -
  16 +
  17 + header('Content-Type: application/json');
17 18 exit(json_encode($response));
18 19 ?>
... ...
src/DDSERVICES/HAPI/index.html 0 → 100644
... ... @@ -0,0 +1,10 @@
  1 +<!DOCTYPE HTML>
  2 +<html>
  3 +<head>
  4 +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5 +<title>Welcome on Amda</title>
  6 +</head>
  7 +<body>
  8 +<h2> Nice to see you </h2>
  9 +</body>
  10 +</html>
0 11 \ No newline at end of file
... ...
src/DDSERVICES/HAPI/info.php
... ... @@ -72,6 +72,7 @@
72 72 $response["parameters"] = $parametersResponse;
73 73 $response["status"] = 1200;
74 74 $response["msg"] = "OK";
75   -
  75 +
  76 + header('Content-Type: application/json');
76 77 exit(json_encode($response));
77 78 ?>
78 79 \ No newline at end of file
... ...