News for hackers. Stuff that matters.
Re:You know how HTTP GET requests are meant to be idempotent? by dragonwriter on Tuesday May 01, 2018 @01:38PM (#16969302)
A toggle would actually be a good use of POST, though PUTting the desired state would be better (PATCH works instead of PUT if you are changing some part of the state and not the whole state, but is unnecessary if the door state consists entirely of either “open” or ”closed”.)

There are no comments on this comment yet.