From 86cc0bed7e78646f956a44fce99cbdfab2f907e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=A0imon=20Kolej=C3=A1k?= <kolejaks@infotech.sk>
Date: Fri, 22 Jan 2021 14:29:02 +0000
Subject: [PATCH] Update README.md, sensors_api.md files

---
 README.md      | 26 +++++++++++++++++++++++++-
 sensors_api.md | 23 +++++++++++++++++++++++
 2 files changed, 48 insertions(+), 1 deletion(-)
 create mode 100644 sensors_api.md

diff --git a/README.md b/README.md
index a3ded7f..1544c78 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,27 @@
 # api_documentation
 
-Documentation for twin API.
\ No newline at end of file
+Documentation for twin API.
+
+`Sensor Data
+
+Set HTTP Header
+Client: {your-client-guid}
+Token: {your-token}
+
+POST: https://twin.rtls.solutions/api/sensors?api-version=2.0
+
+Body:
+
+[
+  {
+    "l":    "sensor-login",  // login
+    "data": [
+      {
+        "n":    "Temperature",	// name of the quantity
+        "v":    "10", // value
+		"u":	"°C" // unit
+        "d":    "Int32"  // datatype (Boolean, Byte, SByte, Char, Decimal, Double, Single, Int32, UInt32, Int64, UInt64, Int16, UInt16)
+      },
+    ]
+  }
+]`
diff --git a/sensors_api.md b/sensors_api.md
new file mode 100644
index 0000000..21f720a
--- /dev/null
+++ b/sensors_api.md
@@ -0,0 +1,23 @@
+`Sensor Data
+
+Set HTTP Header
+Client: {your-client-guid}
+Token: {your-token}
+
+POST: https://twin.rtls.solutions/api/sensors?api-version=2.0
+
+Body:
+
+[
+  {
+    "l":    "sensor-login",  // login
+    "data": [
+      {
+        "n":    "Temperature",	// name of the quantity
+        "v":    "10", // value
+		"u":	"°C" // unit
+        "d":    "Int32"  // datatype (Boolean, Byte, SByte, Char, Decimal, Double, Single, Int32, UInt32, Int64, UInt64, Int16, UInt16)
+      },
+    ]
+  }
+]`
-- 
GitLab