Hacker News new | past | comments | ask | show | jobs | submit login

The HTTP request APIs pass through any method name you write.

The HTML forms only support GET and POST. Try it.




There is no mention of HTML in these recommendations.

The recommendation is perfectly good for any API using HTTP as the substrate. The wisdom of using HTTP as a protocol substrate is questionable, but having made that decision the verbs it supplies work perfectly well.

Incidentally, the HTML living standard supports three form methods, not two: get, post, and dialog. Which rather reinforces the point that HTML != HTTP.


How is that relevant to REST API’s? You don’t generally post to rest endpoints from a form anyways for a lot of good reasons.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: