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
精彩评论