Overwrite HTTP method with JAX-RS

后端 未结 3 1708
囚心锁ツ
囚心锁ツ 2021-01-24 02:03

Today\'s browsers (or HTML < 5) only support HTTP GET and POST, but to communicate RESTful one need PUT and DELETE too. If the workaround should not be to use Ajax, something

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-24 02:41

    To quote Roy Fielding:

    In any case, there are plenty of RESTful services that do nothing but GET and POST. The key is how those methods are used, not what methods are used. To give a specific example, what makes a wiki more or less RESTful is almost always determined by how it (ab)uses GET and sessions -- whether it uses PUT or POST for editing pages is sugar topping in comparison.

    Emphasis is mine, taken from this post http://tech.groups.yahoo.com/group/rest-discuss/message/10746

提交回复
热议问题