News for hackers. Stuff that matters.
Re:You know how HTTP GET requests are meant to be idempotent? by mvindahl on Tuesday May 01, 2018 @05:57AM (#16965721)
Absolutely agree. A PUT method carrying an open/closed flag would seem like a natural choice. Calling it any number of consecutive times with the same payload would be idempotent. There would probably be a GET method to go along with it. And of course, it would model the desired state, not the actual position of the garage door since garage doors don't instantaneously flip (would be cool though).

There are no comments on this comment yet.