Follow

bikeshedding on a restlike api for turning a lightbulb on and off

PUT: i should PUT a json block like {"state":true} to the device url /device/1

GET: i should GET a sub path like /device/1/turnon

@tyr I like the first one more. I hate it when GET does anything other than return data

Sign in to participate in the conversation
The Petting Zoo

The Petting Zoo is a private Mastodon instance run by some queer leaning gay dudes.