From 82bd8dbbf2414c11428df5029bfc97773a19f043 Mon Sep 17 00:00:00 2001
From: Simon Zolin <s.zolin@adguard.com>
Date: Fri, 29 May 2020 14:02:02 +0300
Subject: [PATCH] + doc: /status

---
 AGHTechDoc.md | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/AGHTechDoc.md b/AGHTechDoc.md
index fbfad586..1562b354 100644
--- a/AGHTechDoc.md
+++ b/AGHTechDoc.md
@@ -12,6 +12,7 @@ Contents:
 * Updating
 	* Get version command
 	* Update command
+* API: Get global status
 * TLS
 	* API: Get TLS configuration
 	* API: Set TLS configuration
@@ -370,6 +371,27 @@ Error response:
 UI shows error message "Auto-update has failed"
 
 
+## API: Get global status
+
+Request:
+
+	GET /control/status
+
+Response:
+
+	200 OK
+
+	{
+	"dns_addresses":["..."],
+	"dns_port":53,
+	"http_port":3000,
+	"language":"en",
+	"protection_enabled":true,
+	"running":true,
+	"version":"undefined"
+	}
+
+
 ## Enable DHCP server
 
 Algorithm: