News for hackers. Stuff that matters.
Re:Tesla Model S JSON API by philwelch on Sunday June 29, 2014 @10:16PM (#7963356)
Sometimes you just need to call a procedure, remotely.
Re:Tesla Model S JSON API by jholman on Monday June 30, 2014 @12:03AM (#7963640)
YES! (though I'd quibble with s/sometimes/usually/)

To reply to my siblings:

HTTP is in practice a great transport protocol, because of the world we live in. That's an affront to ivory tower engineering (my favorite kind), but it's a lot better than failure to ship (or shipping something that only works under non-existent conditions).

And RPC needs some kind of container protocol, and SOAP is one possibility, sure. Keep it the hell away from ME, but it's one option. The sane option is to do just what all these so-called RESTful services actually do (modulo not using GET when you should POST), with pleasant-but-not-dogmatic URIs, and JSON, and so forth, and just stop calling it REST, because it's not REST at all. Or call it whatever you like, but get used to endless trolling from pedants like me.

Aside from the bad HTTP verb choice, isn't TFA a pretty reasonable API implementation?

Of course, as sillysaurus noted.... TFA doesn't call it RESTful at all... that was just the HN headline. Oh how we've been trolled.

Re:Tesla Model S JSON API by zachrose on Sunday June 29, 2014 @11:06PM (#7963499)
If HTTP is a bad fit for RPC interfaces, is there something that is a better fit?
Re:Tesla Model S JSON API by andrewchoi on Sunday June 29, 2014 @10:45PM (#7963439)
Isn't that what SOAP is for?
Re:Tesla Model S JSON API by manicdee on Monday June 30, 2014 @01:05AM (#7963768)
And SOAP works over which protocol?
Re:Tesla Model S JSON API by wlievens on Monday June 30, 2014 @06:05AM (#7964364)
Any! It's transport layer independent!

</sarcasm>