检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:潘冰[1]
机构地区:[1]暨南大学珠海学院,广东519070
出 处:《微计算机应用》2010年第7期38-43,共6页Microcomputer Applications
摘 要:作为Web应用技术的探索与实践,提出了面向资源的RESTful Web应用设计思路。通过对Rails框架下RESTful Web的实现原理进行分析,从资源的规划、控制器的设计、模型的建立、表间关联以及RESTful URI的设计等方面对RESTful Web应用进行了研究,给出了Rails框架下RESTful Web应用的开发步骤。最后,通过一个实例实现了面向资源的RESTful Web应用。这种基于资源的设计将所有功能转化为资源,完全打破了传统的基于动作的设计思路,同时说明了REST思想从Web服务到Web应用是可行的。To explore and practise the technologies of Web applications,the idea of resource-oriented RESTful Web application is proposed. After analyzing the implementation principles of RESTful Web based on Rails framework,the resource planning,controller design,model build ,relationships between tables,as well as RESTful URI are studied,and then the steps of RESTful Web application development on Rails are provided. Finally,an example of resource-oriented RESTful Web application is implemented. This resource-based design transforms all functions into resources,completely breaks the traditional action-based design ideas,and the example shows that the REST ideas from the Web services to Web applications is feasible.
关 键 词:面向资源 RAILS框架 表述性状态迁移 WEB应用
分 类 号:TP393.09[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.3