{"issue":{"milestone":null,"user":{"id":108751,"login":"hanshuebner","url":"https://api.github.com/users/hanshuebner","gravatar_id":"280d76aa82179ae04550534649de1e6e","avatar_url":"https://secure.gravatar.com/avatar/280d76aa82179ae04550534649de1e6e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-20T06:28:59Z","title":"rest-api","labels":[],"state":"open","updated_at":"2011-12-20T10:11:09Z","id":2609810,"closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/orthecreedence/rest-api/issues/1","body":"Hi,\r\n\r\njust a few notes on your rest-api:\r\n\r\nThere really seems no need to use easy-acceptor at all.  What you could do instead would be to create a rest-api-acceptor class and specialize the acceptor-dispatch-request method for that class.  The easy-handlers.lisp file in the Hunchentoot source base is a good module to look at.\r\n\r\nAlso, it seems to me that pre-handler could really be a :before method on a function that handles requests.\r\n\r\nThese are just a few thoughts.  I'm writing similar stuff myself at the moment, and RESTAS also does more or less the same thing, and it seems as if it would be nice to eventually have one restful framework rather than many, but maybe not :)\r\n\r\nCheers,\r\nHans","number":1,"url":"https://api.github.com/repos/orthecreedence/rest-api/issues/1","comments":1,"assignee":null},"comment":{"user":{"id":220134,"login":"orthecreedence","url":"https://api.github.com/users/orthecreedence","gravatar_id":"866b067578e3800a310b794561483ae8","avatar_url":"https://secure.gravatar.com/avatar/866b067578e3800a310b794561483ae8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-20T10:11:06Z","updated_at":"2011-12-20T10:11:06Z","id":3216894,"body":"Hans, thanks for the great comments. I'm still learning CL so this helps a lot (I didn't know it was possible to write my own handler classes for Hunchentoot, for starters). Also, I was unaware of RESTAS when I started building this. Oops!\r\n\r\nWhen you say pre-handler could be a :before method, how exactly would that work? I know a bit about CLOS, if that's what you're referring to, but I'm not sure how that would actually look.\r\n\r\nI agree about eventually having one library. CL is fragmented enough, IMO, and could use a bit more unity...as long as everyone uses *MY* library (joke). REST-API is based off of a LOT of the patterns I encountered while doing strictly-REST API programming in PHP (gasp). I just kind of assumed nobody had really looked into it in the depth I needed so I rolled my own the past few days. \r\n\r\nIs your REST project on your github?","url":"https://api.github.com/repos/orthecreedence/rest-api/issues/comments/3216894"},"action":"created"}