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.