Hacker News new | past | comments | ask | show | jobs | submit login

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”.)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: