Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on How to (and how not to) design REST APIs. Parent comment
In HTML, I might have a FORM that does a POST of the lamp's switch to /lamp/switch.
Because the switch is the resource that you're trying to manipulate when turning a lamp on/off, not the lamp itself.
In HTML, I might have a FORM that does a POST of the lamp's switch to /lamp/switch.
Because the switch is the resource that you're trying to manipulate when turning a lamp on/off, not the lamp itself.