Re: [Catalyst] RESTful perl implementations...

2006-10-02 Thread Fernan Aguero
+[ Garrett Goebel <[EMAIL PROTECTED]> (29.Sep.2006 20:25): | | | On Sep 29, 2006, at 5:02 PM, A. Pagaltzis wrote: | | > * Garrett Goebel <[EMAIL PROTECTED]> [2006-09-29 14:16]: | >> I had thought about the HTTP/1.1 methods. However, I was only | >> concerned with the request methods used for

Re: [Catalyst] RESTful perl implementations...

2006-09-29 Thread Garrett Goebel
On Sep 29, 2006, at 5:02 PM, A. Pagaltzis wrote: > * Garrett Goebel <[EMAIL PROTECTED]> [2006-09-29 14:16]: >> I had thought about the HTTP/1.1 methods. However, I was only >> concerned with the request methods used for creating RESTful >> protocols. > > That is an oxymoron. Please don’t take thi

Re: [Catalyst] RESTful perl implementations...

2006-09-29 Thread A. Pagaltzis
* Garrett Goebel <[EMAIL PROTECTED]> [2006-09-29 14:16]: > I had thought about the HTTP/1.1 methods. However, I was only > concerned with the request methods used for creating RESTful > protocols. That is an oxymoron. Please don’t take this in offense, but you don’t seem to have understood what RE

Re: [Catalyst] RESTful perl implementations...

2006-09-27 Thread Garrett Goebel
On Sep 26, 2006, at 11:47 PM, A. Pagaltzis wrote: > * Garrett Goebel <[EMAIL PROTECTED]> [2006-09-26 16:20]: >> Readonly my @ok_methods => (qw/GET POST PUT DELETE/); >> >> my @allow_methods = grep { exists $self->attributes->{$_} } >> @ok_methods; > > If you intend to publish this code som

Re: [Catalyst] RESTful perl implementations...

2006-09-26 Thread A. Pagaltzis
* Garrett Goebel <[EMAIL PROTECTED]> [2006-09-26 16:20]: > Readonly my @ok_methods => (qw/GET POST PUT DELETE/); > > my @allow_methods = grep { exists $self->attributes->{$_} } @ok_methods; If you intend to publish this code somewhere, please don’t do this. Preventing typos is a noble intent

Re: [Catalyst] RESTful perl implementations...

2006-09-26 Thread Matt S Trout
John Napiorkowski wrote: > --- Matt S Trout <[EMAIL PROTECTED]> wrote: > >> Garrett Goebel wrote: >>> On Sep 26, 2006, at 9:44 AM, Matt S Trout wrote: >>> Garrett Goebel wrote: > I'm sure this is too late to be useful. But here >> is my subclassed > Catalyst::Action to implemented RES

Re: [Catalyst] RESTful perl implementations...

2006-09-26 Thread John Napiorkowski
--- Matt S Trout <[EMAIL PROTECTED]> wrote: > Garrett Goebel wrote: > > On Sep 26, 2006, at 9:44 AM, Matt S Trout wrote: > > > >> Garrett Goebel wrote: > >>> I'm sure this is too late to be useful. But here > is my subclassed > >>> Catalyst::Action to implemented RESTful request > method based >

Re: [Catalyst] RESTful perl implementations...

2006-09-26 Thread Matt S Trout
Garrett Goebel wrote: > On Sep 26, 2006, at 9:44 AM, Matt S Trout wrote: > >> Garrett Goebel wrote: >>> I'm sure this is too late to be useful. But here is my subclassed >>> Catalyst::Action to implemented RESTful request method based >>> dispatching. [I've been working on this in my free time. Wh

Re: [Catalyst] RESTful perl implementations...

2006-09-26 Thread Matt S Trout
Garrett Goebel wrote: > On Sep 26, 2006, at 10:08 AM, John Napiorkowski wrote: > >> -- Garrett Goebel <[EMAIL PROTECTED]> wrote: >> >>> I'm sure this is too late to be useful. But here is >>> my subclassed >>> Catalyst::Action to implemented RESTful request >>> method based >>> dispatching. [I've

Re: [Catalyst] RESTful perl implementations...

2006-09-26 Thread Garrett Goebel
On Sep 26, 2006, at 10:08 AM, John Napiorkowski wrote: > -- Garrett Goebel <[EMAIL PROTECTED]> wrote: > >> I'm sure this is too late to be useful. But here is >> my subclassed >> Catalyst::Action to implemented RESTful request >> method based >> dispatching. [I've been working on this in my free

Re: [Catalyst] RESTful perl implementations...

2006-09-26 Thread Garrett Goebel
On Sep 26, 2006, at 9:44 AM, Matt S Trout wrote: > Garrett Goebel wrote: >> I'm sure this is too late to be useful. But here is my subclassed >> Catalyst::Action to implemented RESTful request method based >> dispatching. [I've been working on this in my free time. Which I have >> precious little

Re: [Catalyst] RESTful perl implementations...

2006-09-26 Thread Garrett Goebel
I'm sure this is too late to be useful. But here is my subclassed Catalyst::Action to implemented RESTful request method based dispatching. [I've been working on this in my free time. Which I have precious little of lately. My apologies.] The references to $c->request->path_parameters are to

Re: [Catalyst] RESTful perl implementations...

2006-09-26 Thread John Napiorkowski
-- Garrett Goebel <[EMAIL PROTECTED]> wrote: > I'm sure this is too late to be useful. But here is > my subclassed > Catalyst::Action to implemented RESTful request > method based > dispatching. [I've been working on this in my free > time. Which I have > precious little of lately. My apolog

Re: [Catalyst] RESTful perl implementations...

2006-09-26 Thread Matt S Trout
Garrett Goebel wrote: > I'm sure this is too late to be useful. But here is my subclassed > Catalyst::Action to implemented RESTful request method based > dispatching. [I've been working on this in my free time. Which I have > precious little of lately. My apologies.] > > The references to $

Re: [Catalyst] RESTful perl implementations...

2006-09-10 Thread John Napiorkowski
Arg, it is now. At least I tweaked it a bit from the last iteration. Seems to work but still lacks tests. -john --- Matt S Trout <[EMAIL PROTECTED]> wrote: > John Napiorkowski wrote: > > As I promised earlier, attached is > > No it isn't. > > -- > Matt S Trout Offering custom

Re: [Catalyst] RESTful perl implementations...

2006-09-10 Thread Matt S Trout
John Napiorkowski wrote: > As I promised earlier, attached is No it isn't. -- Matt S Trout Offering custom development, consultancy and support Technical Directorcontracts for Catalyst, DBIx::Class and BAST. Contact Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for m

Re: [Catalyst] RESTful perl implementations...

2006-09-09 Thread John Napiorkowski
As I promised earlier, attached is a sample ActionClass that seems to work okay to match on HTTP request methods, but will clearly need a lot more. I'd not even a proper CPAN module and has no tests. But it shows the direction I was thinking of taking. I also included a controller that demos it,

Re: [Catalyst] RESTful perl implementations...

2006-09-09 Thread John Napiorkowski
I'd like something like that for creating my atom services, or at least to get me started on them. Ideally this could be something that could also generate code I could save and then tweak as well as a 'plug and go' deal. I think thing project has a couple of pieces I can see. Let me put them do

Re: [Catalyst] RESTful perl implementations...

2006-09-09 Thread Zbigniew Lukasiak
Hi all, Do you think it would fit into InstantCRUD?  I can imagine that if you make it easily pluggable I could include it into the generator. -- ZbyszekOn 9/9/06, John Napiorkowski <[EMAIL PROTECTED]> wrote: I'd like something that would be similar to the GoogleAPI (Based on Atom) and would also

Re: [Catalyst] RESTful perl implementations...

2006-09-08 Thread John Napiorkowski
I'd like something that would be similar to the Google API (Based on Atom) and would also support JSON for the feed data. I also think RPC of some sort is useful for particular method oriented tasks, certain things just don't fit well into the REST paradigm (in my opinion, but don't want to start

Re: [Catalyst] RESTful perl implementations...

2006-09-08 Thread J. Shirley
I'm working on a similar thing, except relying heavier on JSON-RPC for certain things, and a mix of RESTful constructs for the rest. Maybe an IRC meeting where we can get together and compare notes to solidify our efforts? -J On 9/7/06, Garrett Goebel <[EMAIL PROTECTED]> wrote: > My apologies. I

[Catalyst] RESTful perl implementations...

2006-09-07 Thread Garrett Goebel
My apologies. I haven't made the time yet to fix my code to use an ActionClass. And it doesn't look like I'll have a chance to work on things again until this weekend at the earliest. In the mean time, you might consider checking out the Jifty::Plugin::REST::Dispatcher in the svn repository