diff --git a/README.md b/README.md index 758a51e..db0aa79 100644 --- a/README.md +++ b/README.md @@ -130,11 +130,36 @@ Here is a list of the available api calls for the board : * Response format : JSON * OK : { "status" : "ok", "ViewUID" : "UID" } * FAIL : { "status" : "failed", "message" : "REASON" } -/sab/rtc/get/datetime -/sab/sdcard/eject -/sab/sdcard/insert -/esp/restart -/esp/reset +* /sab/rtc/get/datetime + * HTTP request method : GET + * Description : Get RTC's time + * Response format : JSON + * OK : { "status" : "ok", "date" : "xx/xx/xxxx", "time" "xx:xx:xx" } +* /sab/rtc/set/datetime?datetime=day_month_year_hours_minutes_seconds + * HTTP request method : GET + * Description : Set RTC's clock + * Response format : JSON + * OK : { "status" : "ok", "date" : "xx/xx/xxxx", "time" "xx:xx:xx" } + * FAIL : { "status" : "failed", "message" : "REASON" } +* /sab/sdcard/unmount + * HTTP request method : GET + * Description : Unmount the SD Card in order to remove it + * Response format : JSON + * OK : { "status" : "ok", "card" : "unmounted" } +* /sab/sdcard/mount + * HTTP request method : GET + * Description : Mount the SD Card + * Response format : JSON + * OK : { "status" : "ok", "card" : "mounted" } + * FAIL : { "status" : "failed", "message" : "REASON" } +* /esp/restart + * HTTP request method : GET + * Description : Restart the UC, this one is recommended compared to the reset call + * Response format : NOTHING +* /esp/reset + * HTTP request method : GET + * Description : Reset the UC + * Response format : NOTHING ### Things to do :