REST Content-Type: Should it be based on extension or Accept header?

后端 未结 7 1373
旧时难觅i
旧时难觅i 2020-11-28 22:50

Should the representation(html, xml, json) returned by a RESTful web service be determined by the url or by the Accept HTTP header?

7条回答
提交回复
热议问题