From 6763394bf1ad825c03cf5ac2e5ca70edf3eb76a4 Mon Sep 17 00:00:00 2001 From: Th3maz1ng Date: Mon, 4 Apr 2022 22:31:33 +0200 Subject: [PATCH] Updated and added missing Rest API endpoints --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index ec24471..a7f9f3d 100644 --- a/README.md +++ b/README.md @@ -211,12 +211,22 @@ Here is a list of the available api calls for the board : * Description : Get the module's I/O logic levels, it is possible to check the level of specific pins * Response format : JSON * OK : { "status" : "ok", "P0" : "1", "P1" : "1", "P2" : "0", "P3" : "1", "P4" : "1", "P5" : "1", "P6" : "1", "P7" : "1" } +* /sab/io/set/level?P0=0&P2=1&PX=X... + * HTTP request method : GET + * Description : Set the module's I/O logic levels, it is possible to set the level for specific pins + * Response format : JSON + * OK : { "status" : "ok", "P0" : "0", "P1" : "1", "P2" : "1", "P3" : "1", "P4" : "1", "P5" : "0", "P6" : "1", "P7" : "1" } * /sab/io/get/mode * /sab/io/get/mode?P0&P2&PX... * HTTP request method : GET * Descritpion : Get the module's I/O mode (ie input or ouput), it is possible to get the mode of specific pins * Response format : JSON * OK : { "status" : "ok", "P0" : "OUT", "P1" : "IN", "P2" : "OUT", "P3" : "OUT", "P4" : "IN", "P5" : "OUT", "P6" : "IN", "P7" : "OUT" } +* /sab/io/set/mode?P0=IN&P1=OUT&PX=X... + * HTTP request method : GET + * Description : Set the module's I/O mode (ie input or ouput), it is possible to set the mode for specific pins + * Response format : JSON + * OK : { "status" : "ok", "P0" : "IN", "P1" : "OU", "P2" : "OUT", "P3" : "OUT", "P4" : "IN", "P5" : "OUT", "P6" : "IN", "P7" : "OUT" } ### Things to do :