Skip to content

Comment on How I explained REST to my wifeparent

Comments

At the moment, generally you use GET and ask for a different Content-Type with an Accept header, or you say something like <link rel="alternate" type="application/rss+xml" href="foo.xml" />. In some cases you're expected to guess the alternate URL instead, maybe based on a document somewhere else, which is non-RESTian. However, it's pretty rare for someone to do what you suggest, which is to use new HTTP verbs in order to get different representations.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.