Tags: resource
REST????????????????
By MD on May 20, 2008 | In Database | Send feedback »
???
"REST"?????
????????????????????????????????
- WebService?????????????????????????
- Ruby On Rails??????
- Ajax?
- Google????????URL????????????
???????????????
?????????????????
Representational State Transfer
Representational state transfer (REST) is a style of software architecture for distributed hypermedia systems such as the World Wide Web. The terms “representational state transfer” and “REST” were introduced in 2000 in the doctoral dissertation of Roy Fielding,[1] one of the principal authors of the Hypertext Transfer Protocol (HTTP) specification. The terms have since come into widespread use in the networking community.
Wikipedia???????????????????????????????????????HTTP???????????????????????
?????REST???????????????Resource?????????????
REST's central principle: resources
An important concept in REST is the existence of resources (sources of specific information), each of which can be referred to using a global identifier (a URI).
...
For example, a resource which is a circle may accept and return a representation which specifies a center point and radius, formatted in SVG, but may also accept and return a representation which specifies any three distinct points along the curve as a comma-separated list.
??????????????????????????”????”?????????????????????????????????????????????????????????????????????????????????Representation??????
???????????????Representation?????????????????
- ??????
- SVG??????
- CSV???????????????????????
??????????????????????????????????????????????????
????
?????????????????????????????Google Finance??????????”????”???????????????
http://finance.google.com/finance?q=NYSE%3ATM
????????????????
???????????????????????????????????????????????????????????????????????????
??????????????????????
?????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????
?????????????????????
???????????
???Wikipedia????????????????????????????????????????????????????????????????????????????
??????????????
?????????????
???????????????????????????????
RPC?????????????
?????????RESTfull????????