restful 风格API 设计 403错误
2017-07-07 16:49
405 查看
在tomcat 的config 目录下面web.xml添加
<init-param>
<param-name>readonly</param-name>
<param-value>false</param-value>
</init-param>
可参考tomcat 配置属性
http://tomcat.apache.org/tomcat-7.0-doc/default-servlet.html
设计原则:简洁明了,去掉动作命名,get,post,put,delete 几乎对应 查 增 改 删,
参数绑定 用好@RequestBody 和@PathVariable两个注解就好
<init-param>
<param-name>readonly</param-name>
<param-value>false</param-value>
</init-param>
可参考tomcat 配置属性
http://tomcat.apache.org/tomcat-7.0-doc/default-servlet.html
设计原则:简洁明了,去掉动作命名,get,post,put,delete 几乎对应 查 增 改 删,
参数绑定 用好@RequestBody 和@PathVariable两个注解就好
相关文章推荐
- 【API设计风格—RESTful】:番外篇:跨域问题(四)
- 通俗易懂RESTful,如何设计RESTful风格API
- RESTful 良好的API设计风格
- 【API设计风格—RESTful】:什么是RESTful(一)
- 【API设计风格—RESTful】:服务端如何编写RESTful风格的API(二)
- RESTful API设计风格(1)
- 使Web API支持二级实体操作,兼对RESTFul风格API设计的疑惑。
- 使Web API支持二级实体操作,兼对RESTFul风格API设计的疑惑。
- restful Api 风格契约设计器:Swagger-editor和swagger-ui的应用
- SSM用restful风格设计API
- 【API设计风格—RESTful】:前端如何调用RESTful风格的API(三)
- 【API设计风格—RESTful】:什么是RESTful(一)
- 如何设计好的RESTful API之安全性
- RESTful API 设计最佳实践
- RESTful API 设计指南
- RESTful API 设计最佳实践
- RESTful API 设计最佳实践(转)
- RESTful API 设计指南
- RESTful API 设计最佳实践(转)
- RESTful API 设计最佳实践