RubenVerborgh / WebFundamentals

Slides for the Web Fundamentals module of my Ghent University class “Web Development”
https://rubenverborgh.github.io/WebFundamentals/
Other
78 stars 33 forks source link

Suggestion why PUT and DELETE are not supported in HTML forms [practicum 1 - Web APIs] #68

Open brechtvdv opened 5 years ago

brechtvdv commented 5 years ago

A lot of students are confused when they want to implement PUT/DELETE operations in their Web application, because they started with HTML forms for POST operations and expect the same thing for the other operations. Some get around this by using hidden fields or other work-arounds, which is not a proper solution. (https://softwareengineering.stackexchange.com/questions/114156/why-are-there-are-no-put-and-delete-methods-on-html-forms)

Solution: in the assignment a paragraph can be added to suggest they should use Javascript for this

RubenVerborgh commented 5 years ago

That is a very good point. We should add a slide to the Web architecture class (or possibly Web APIs), in which we explain that HTML does not support all of the HTTP methods.

I will leave this open in case there are any takers 🙂