|
What is the resource for "int multiply(int a, int b)"?
It could be:
http://localhost/calculations/multiply?a=4&b=4
But this is silly argument against REST because you're dealing with coarse-grained objects. This woudl be a dumb idea even for WS style web services
I haven't seen any REST Web Services so far, all I see are resources accessible using HTTP GET
Have a look at the Flickr API then. Also Yahoo! News
I'm not the only one having this opinion as I talked recently with another person implementing REST for his Web Services framework (like I do) and we shared the same opinion.
Awesome.
One thing most folks fail to see if that browsers don't supprt WSDL or SOAP. A browser can use a RESTful Web Service as part of an AJAX-based web application. Can't quite do that with SOAP and have it work everywhere. |