开发者

RESTful services and

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜