News for hackers. Stuff that matters.
Re:Tesla Model S JSON API by noonespecial on Sunday June 29, 2014 @09:34PM (#7963242)
Ahh. Good point. I was considering PUTting the horn into the honking state vs POSTing horn honks for execution. In the first case, 2 PUT honks would just result in a honking car, in the second, 2 POSTs would get you 2 "honks" whatever those are defined to be.

I guess I was thinking of the idempotent "panic" button on my cars key fob.

Re:Tesla Model S JSON API by pdonis on Sunday June 29, 2014 @10:54PM (#7963462)
the idempotent "panic" button on my cars key fob

Hmmm, mine actually isn't--one hit turns panic mode on, the second turns it off.

Re:Tesla Model S JSON API by nl on Sunday June 29, 2014 @09:57PM (#7963304)
There's a reasonable argument for a custom verb.

But pragmatically, given the problems customs verbs cause I'd probably go for POST.