a better example

http://www.intertwingly.net/blog/2005/07/22/REST-vs-API


On Mon, 12 Sep 2005, S. Alexander Jacobson wrote:

On Mon, 12 Sep 2005, Joel Reymont wrote:
Why not XML-RPC?

REST is more appropriate for the applications on which I work.

See http://webservices.xml.com/pub/a/ws/2002/02/20/rest.html

-Alex-

______________________________________________________________
S. Alexander Jacobson tel:917-770-6565 http://alexjacobson.com



On Sep 12, 2005, at 9:54 PM, S. Alexander Jacobson wrote:

6. define how busines logic maps to URLs

  ...
  a POST _ ["u"] = doXML addUser
  a GET "myapp.com" ("s":path) = fileServe mimeTypes "static" path

  myApp appCtx = let ?style=XSL "/s/style.xsl" in simpleHTTP a appCtx




______________________________________________________________
S. Alexander Jacobson tel:917-770-6565 http://alexjacobson.com
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to