Comment by TekMol

3 days ago

So why is there no problem with vote/flag/vouche on HN being GET endpoints?

Then that does not conform to the HTTP spec. GET endpoints must be safe, idempotent, cachable. Opening up a site to cases were web crawlers/scrapers may wreak havoc.

https://news.ycombinator.com/item?id=3742902

  • Indeed, user embedded pictures can fire GET requests while can not make POST requests. But this is not a problem if you don't allow users to embed pictures, or you authenticate the GET request somehow. Anyway GET requests are just fine.

  • The same would have worked with a POST endpoint.

    The story url only would have to point to a web page that creates the upvote post request via JS.