From f3e98005e34f6279a02cb5d3f5a0d88281dce76b Mon Sep 17 00:00:00 2001
From: Elena.Budnik <ebudnik@irap.omp.eu>
Date: Fri, 7 Dec 2018 15:51:28 +0100
Subject: [PATCH] index.html + header json for hapi

---
 src/DDSERVICES/HAPI/capabilities.php |  1 +
 src/DDSERVICES/HAPI/catalog.php      |  3 ++-
 src/DDSERVICES/HAPI/index.html       | 10 ++++++++++
 src/DDSERVICES/HAPI/info.php         |  3 ++-
 4 files changed, 15 insertions(+), 2 deletions(-)
 create mode 100644 src/DDSERVICES/HAPI/index.html

diff --git a/src/DDSERVICES/HAPI/capabilities.php b/src/DDSERVICES/HAPI/capabilities.php
index 88ea164..650e454 100644
--- a/src/DDSERVICES/HAPI/capabilities.php
+++ b/src/DDSERVICES/HAPI/capabilities.php
@@ -6,5 +6,6 @@
     $response["msg"] = "ok";
     $response["outputFormats"] = array("csv");
 
+    header('Content-Type: application/json');
     exit(json_encode($response));
 ?>
diff --git a/src/DDSERVICES/HAPI/catalog.php b/src/DDSERVICES/HAPI/catalog.php
index a33a434..3a9b756 100644
--- a/src/DDSERVICES/HAPI/catalog.php
+++ b/src/DDSERVICES/HAPI/catalog.php
@@ -13,6 +13,7 @@
     }
 
     $response["catalog"] = $catalog;
-
+    
+    header('Content-Type: application/json');
     exit(json_encode($response));
 ?>
diff --git a/src/DDSERVICES/HAPI/index.html b/src/DDSERVICES/HAPI/index.html
new file mode 100644
index 0000000..d864cad
--- /dev/null
+++ b/src/DDSERVICES/HAPI/index.html
@@ -0,0 +1,10 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<title>Welcome on Amda</title> 
+</head>
+<body>
+<h2> Nice to see you </h2>
+</body>
+</html>
\ No newline at end of file
diff --git a/src/DDSERVICES/HAPI/info.php b/src/DDSERVICES/HAPI/info.php
index ac5a4b4..351e528 100644
--- a/src/DDSERVICES/HAPI/info.php
+++ b/src/DDSERVICES/HAPI/info.php
@@ -72,6 +72,7 @@
     $response["parameters"] = $parametersResponse;
     $response["status"] = 1200;
     $response["msg"] = "OK";
-    
+
+    header('Content-Type: application/json');
     exit(json_encode($response));
 ?>
\ No newline at end of file
--
libgit2 0.21.2