开发者

RESTful services and

开发者 https://www.devze.com 2022-12-13 03:00 出处:网络
I have just read Resource-Oriented Architecture: The Rest of REST. 开发者_StackOverflow社区The reasoning behind content negotiation is compelling, but there\'s one thing I sometimes need, which seems

I have just read Resource-Oriented Architecture: The Rest of REST. 开发者_StackOverflow社区The reasoning behind content negotiation is compelling, but there's one thing I sometimes need, which seems to be impossible in this schema.

Let assume I've got a web service to deliver some graphs. I want users to choose between different styles of these graphs (a fancy color one, B&W, ...), but all of them are always png images. For all of them the mimetype will simply be image/png. So what is the preferred way to negotiate custom parameters?


Use querystring parameters.

0

精彩评论

暂无评论...
验证码 换一张
取 消