๐Ÿงช Testing Graph Generation Endpoint ===================================== Test Case 1: Show me population by age groups -------------------------------------------------- ๐Ÿ“ค Sending request to: https://app.nsa.org.na/generate_graph.php ๐Ÿ“ค POST data: {"query":"Show me population by age groups","dataset_id":null} ๐Ÿ“ก HTTP Status: 200 โฑ๏ธ Total Time: 0.486537s ๐Ÿ“ฅ Response: HTTP/1.1 200 OK Server: nginx Date: Mon, 13 Oct 2025 22:06:07 GMT Content-Type: application/json Transfer-Encoding: chunked Connection: keep-alive Access-Control-Allow-Origin: * Cache-Control: no-cache, no-store, must-revalidate, max-age=0 Pragma: no-cache Expires: 0 {"success":false,"error":"OpenAI library not installed. Run: composer install"} ================================================================================ Test Case 2: GDP by economic sectors -------------------------------------------------- ๐Ÿ“ค Sending request to: https://app.nsa.org.na/generate_graph.php ๐Ÿ“ค POST data: {"query":"GDP by economic sectors","dataset_id":null} ๐Ÿ“ก HTTP Status: 200 โฑ๏ธ Total Time: 0.019367s ๐Ÿ“ฅ Response: HTTP/1.1 200 OK Server: nginx Date: Mon, 13 Oct 2025 22:06:07 GMT Content-Type: application/json Transfer-Encoding: chunked Connection: keep-alive Access-Control-Allow-Origin: * Cache-Control: no-cache, no-store, must-revalidate, max-age=0 Pragma: no-cache Expires: 0 {"success":false,"error":"OpenAI library not installed. Run: composer install"} ================================================================================ Test Case 3: Employment statistics over time -------------------------------------------------- ๐Ÿ“ค Sending request to: https://app.nsa.org.na/generate_graph.php ๐Ÿ“ค POST data: {"query":"Employment statistics over time","dataset_id":null} ๐Ÿ“ก HTTP Status: 200 โฑ๏ธ Total Time: 0.019193s ๐Ÿ“ฅ Response: HTTP/1.1 200 OK Server: nginx Date: Mon, 13 Oct 2025 22:06:07 GMT Content-Type: application/json Transfer-Encoding: chunked Connection: keep-alive Access-Control-Allow-Origin: * Cache-Control: no-cache, no-store, must-revalidate, max-age=0 Pragma: no-cache Expires: 0 {"success":false,"error":"OpenAI library not installed. Run: composer install"} ================================================================================ ๐Ÿ Test completed. Check server logs at: graph_generation.log