yats.git

commit 23690d53dd05b1a2051fcb8745a1c1a8d45165c1

Author: Paolo Lulli <paolo@lulli.net>

Example local test of /position endpoint

 clients/shell/postPosition.sh | 8 ++++++++


diff --git a/clients/shell/postPosition.sh b/clients/shell/postPosition.sh
new file mode 100755
index 0000000000000000000000000000000000000000..8466b576aea541e42d10de5f193c29410c4eddbe
--- /dev/null
+++ b/clients/shell/postPosition.sh
@@ -0,0 +1,8 @@
+#! /bin/bash
+#
+curl \
+	-X POST\
+	--header "Content-Type: application/json"\
+	--header "X-SSL-Client-CN: something-ugly"\
+	-d '{"ptime":1713216484,"id_client":"test-cli","name":"test-pos","lat":10.0,"lon":20.1}'\
+	http://127.0.0.1:18081/position