Re:You know how HTTP GET requests are meant to be idempotent?
by z3t4 on Tuesday May 01, 2018 @04:52AM
(#16965469)
HTTP GET is nice because you can "debug" via browser. But I don't think it's a good protocol choice for opening/closing doors nor any other service not related to document requests.
[ Parent
| on HN ]
Re:You know how HTTP GET requests are meant to be idempotent?
by onion2k on Tuesday May 01, 2018 @05:15AM
(#16965545)
It's trivial to debug a POST in a browser if you can open the console. https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequ...
Re:You know how HTTP GET requests are meant to be idempotent?
by mcintyre1994 on Tuesday May 01, 2018 @05:55AM
(#16965709)
And if you're in a browser with a console worth opening you can use fetch instead which is way nicer: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
Also Postman is awesome for debugging REST APIs.