2 points · by edmoffo · 12y ago · 1 comment
"Accept: application/json" returns the json API "Accept: text/html" returns the website
RESTful API and a Web Site in the Same URL
The way RESTful API-s are designed perfectly fits into the concept of web browsing, with a few minimal alterations
Yegor Bugayenko