From 4c49d2660ed4262a59257fb25601546f0e72d19c Mon Sep 17 00:00:00 2001 From: Patrick Balsiger Date: Mon, 24 Sep 2018 07:18:18 +0000 Subject: [PATCH] Update api.md --- api.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api.md b/api.md index 01187bf..0635ace 100644 --- a/api.md +++ b/api.md @@ -1,9 +1,8 @@ # API Two API architectures are supported: WebSocket and REST. Both can be used with the same set of fields. -Everything is propagated to the mesh network automatically. - -Fields: +Everything is propagated to the mesh network automatically. +As everything can be controlled with topics, only two fields are required: - topic - payload @@ -35,4 +34,6 @@ Example: #### Endpoints Content-Type: application/x-www-form-urlencoded POST /pixel/api +Request: Form post with topic and payload as fields +Response: 200 + JSON message that was used to notify the topics \ No newline at end of file