3 ms·
Well, I for one don't understand REST. In particular, how to implement it in current HTML with current browsers. There's all this nice, theoretical stuff abou
by antonyme 15y ago
Well, I for one don't understand REST. In particular, how to implement it in current HTML with current browsers.
There's all this nice, theoretical stuff about URI design, HTTP verbs and stuff. So I went to actually implement this the other day, only to find that you can't actually do it properly without hacks, because HTML and browsers only support the GET and POST methods for FORMs. WTF?
Can you actually implement a set of CRUD pages for an entity without resorting to hacks like hidden _method fields?
Surely REST is intended to be used for more than AJAXy APIs?
- icebraining 15y agoYou're confusing REST (an architectural style) with HTTP (which defines the verbs/methods). REST isn't only HTTP, and HTTP clients are not only general browsers. But it's true, you can't use the full range of HTTP verbs using normal HTML, and that's a shame. Apparently HTML5 was supposed to support them, but it was removed.