Lightbulbs! My favourite REST example. See for yourself; http://www.markbaker.ca/2002/08/Rest/
> Using the REST approach, following your scheme one would define the > resources: > http://example.lightbulb.net/TurnOn > http://example.lightbulb.net/TurnOff > http://example.lightbulb.net/Dim > > and the light would be turned on, turned off and dimmed by HTTP/POSTing a > message to each of the respective resources. > > An alternative scheme would be to have just one resource: > http://example.lightbulb.net > and include the name of the operation in the POSTed messages. > > Or one could HTTP/GET "queries" like http://example.lightbulb.net/TurnOn > and http://example.lightbulb.net/Dim?Luminosity=.75. None of those are RESTful. AFAIK, REST suggests just one solution for that problem. A single identifier for the lightbulb; http://example.net/lightbulb1234 and the use of PUT to turn the bulb on and off, ala; PUT http://example.org/lightbulb1234 Content-Type: application/lightbulb+xml <lightbulb state="on"/> Simple, no? Mark. ------------------------ Yahoo! Groups Sponsor --------------------~--> Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/NhFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/service-orientated-architecture/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
