RestAPI和Restful Web服务之间的区别 [英] Difference Between RestAPI and Restful webservices

查看:232
本文介绍了RestAPI和Restful Web服务之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是网络服务的新手。有人可以帮助我理解REST API和Java中的Restful Web服务之间的区别。我开发了一个仅基于servlet和jsp的web应用程序。现在必须使用REST API开发相同的应用程序。使用servlet和jsp开发Web应用程序和使用REST API开发Web应用程序之间的区别是什么。有人可以提供指向优秀教程的链接,我可以通过示例了解有关REST API的更多信息。

I am new to web-services. Could someone help me in understanding the difference between REST API and a Restful web-service in java. I have developed a web-application which is based on only servlets and jsp. Now the same application has to be developed using REST API. What is the difference between developing a web app with just servlets and jsp and developing a webapp with REST API. Can someone provide links to good tutorials where I can learn more about REST API with samples.

推荐答案

A RESTful web API (also called a RESTful web service) is a web API implemented using HTTP and REST principles. It is a collection of resources

参考: http://en.wikipedia.org/wiki/Representational_state_transfer

有时,某些组织可能会显示REST API和Restful Web服务之间差别不大。
例如,每个人都可以使用Rest API来使用具有相同端点的数据。

Sometimes, some organization might show little difference, Between REST API and Restful web services. For eg, Rest API might be common for everyone to use the data with same endpoint.

可以为特定需求和端点提供自定义修改的Restful Web服务会有所不同。

Restful web services may comes with custom modification for specific requirement and endpoint will be different.

这篇关于RestAPI和Restful Web服务之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆