开发者

Difference between a REST API and a web application

开发者 https://www.devze.com 2023-03-04 06:27 出处:网络
What is the difference when I am about to write a REST API? I mean what considerations I should 开发者_开发百科take into account which are not important for web applications?

What is the difference when I am about to write a REST API?

I mean what considerations I should 开发者_开发百科take into account which are not important for web applications? including the server, programming style, tighter security considerations, etc..


To me, a web application implies a user interface -- HTML delivered from a server. A REST API, on the other hand, uses the HTTP protocol independent of presentation, and could equally support desktop clients, mobile clients, Flash/Flex clients, etc.


You should be following RESTful principles as described in Roy Fielding document: http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm

0

精彩评论

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