Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-15 Thread Zbigniew Lukasiak
Hi there, This is a frequently recurring conversation - so I created a wiki page to gather all the points where we reached some consensus: http://catwiki.toeat.com/crud. For the start I just dumped my opinions. I tried to be not controversial - but it is a wiki - if you don't agree then you can

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-15 Thread Zbigniew Lukasiak
On Thu, May 15, 2008 at 7:31 PM, Mark Trostler [EMAIL PROTECTED] wrote: You don't need 'create' 'update' 'delete' parts of your URL - those should be denoted by the request type - POST, PUT, or DELETE right? Yes - you are right about REST, but what something more than that. We want to have

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-06 Thread Peter Karman
On 05/05/2008 02:33 PM, luke saunders wrote: On Mon, May 5, 2008 at 7:28 PM, Peter Karman [EMAIL PROTECTED] wrote: On 05/05/2008 12:16 PM, J. Shirley wrote: The discussions about a better CRUD base class with REST and RPC adapters is obviously the better (best?) solution, but I

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread Matt S Trout
On Sun, May 04, 2008 at 09:06:30AM -0700, J. Shirley wrote: On Sun, May 4, 2008 at 8:52 AM, Zbigniew Lukasiak [EMAIL PROTECTED] wrote: Sorry but I don't understand your point - so maybe first I'll restate mine. If you have primary key in the database that is of type varchar (or char

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread J. Shirley
On Mon, May 5, 2008 at 4:31 AM, Matt S Trout [EMAIL PROTECTED] wrote: On Sun, May 04, 2008 at 09:06:30AM -0700, J. Shirley wrote: On Sun, May 4, 2008 at 8:52 AM, Zbigniew Lukasiak [EMAIL PROTECTED] wrote: Sorry but I don't understand your point - so maybe first I'll restate

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread J. Shirley
On Mon, May 5, 2008 at 8:18 AM, Andrew Rodland [EMAIL PROTECTED] wrote: On Monday 05 May 2008 09:50:08 am J. Shirley wrote: On Mon, May 5, 2008 at 4:31 AM, Matt S Trout [EMAIL PROTECTED] wrote: On Sun, May 04, 2008 at 09:06:30AM -0700, J. Shirley wrote: I fail to see how whether the

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread Zbigniew Lukasiak
On Mon, May 5, 2008 at 6:19 PM, J. Shirley [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 8:18 AM, Andrew Rodland [EMAIL PROTECTED] wrote: On Monday 05 May 2008 09:50:08 am J. Shirley wrote: On Mon, May 5, 2008 at 4:31 AM, Matt S Trout [EMAIL PROTECTED] wrote: On Sun, May 04, 2008

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread luke saunders
On Mon, May 5, 2008 at 5:19 PM, J. Shirley [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 8:18 AM, Andrew Rodland [EMAIL PROTECTED] wrote: On Monday 05 May 2008 09:50:08 am J. Shirley wrote: On Mon, May 5, 2008 at 4:31 AM, Matt S Trout [EMAIL PROTECTED] wrote: On Sun, May 04, 2008

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread Matt S Trout
On Mon, May 05, 2008 at 07:50:08AM -0700, J. Shirley wrote: On Mon, May 5, 2008 at 4:31 AM, Matt S Trout [EMAIL PROTECTED] wrote: On Sun, May 04, 2008 at 09:06:30AM -0700, J. Shirley wrote: On Sun, May 4, 2008 at 8:52 AM, Zbigniew Lukasiak [EMAIL PROTECTED] wrote: Sorry but

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread J. Shirley
On Mon, May 5, 2008 at 9:49 AM, Zbigniew Lukasiak [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 6:19 PM, J. Shirley [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 8:18 AM, Andrew Rodland [EMAIL PROTECTED] wrote: On Monday 05 May 2008 09:50:08 am J. Shirley wrote: On Mon, May 5,

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread J. Shirley
On Mon, May 5, 2008 at 10:02 AM, Matt S Trout [EMAIL PROTECTED] wrote: On Mon, May 05, 2008 at 07:50:08AM -0700, J. Shirley wrote: On Mon, May 5, 2008 at 4:31 AM, Matt S Trout [EMAIL PROTECTED] wrote: On Sun, May 04, 2008 at 09:06:30AM -0700, J. Shirley wrote: On Sun, May 4,

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread J. Shirley
On Mon, May 5, 2008 at 9:51 AM, luke saunders [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 5:19 PM, J. Shirley [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 8:18 AM, Andrew Rodland [EMAIL PROTECTED] wrote: On Monday 05 May 2008 09:50:08 am J. Shirley wrote: On Mon, May 5, 2008

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread Peter Karman
On 05/05/2008 12:16 PM, J. Shirley wrote: The discussions about a better CRUD base class with REST and RPC adapters is obviously the better (best?) solution, but I also think there will be significant disagreement between appropriate URI resource conventions (as my exchange with zby is an

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread J. Shirley
On Mon, May 5, 2008 at 11:28 AM, Peter Karman [EMAIL PROTECTED] wrote: On 05/05/2008 12:16 PM, J. Shirley wrote: The discussions about a better CRUD base class with REST and RPC adapters is obviously the better (best?) solution, but I also think there will be significant

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread luke saunders
On Mon, May 5, 2008 at 7:28 PM, Peter Karman [EMAIL PROTECTED] wrote: On 05/05/2008 12:16 PM, J. Shirley wrote: The discussions about a better CRUD base class with REST and RPC adapters is obviously the better (best?) solution, but I also think there will be significant

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread luke saunders
On Mon, May 5, 2008 at 6:16 PM, J. Shirley [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 9:51 AM, luke saunders [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 5:19 PM, J. Shirley [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 8:18 AM, Andrew Rodland [EMAIL PROTECTED] wrote:

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread J. Shirley
On Mon, May 5, 2008 at 1:10 PM, luke saunders [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 6:16 PM, J. Shirley [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 9:51 AM, luke saunders [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 5:19 PM, J. Shirley [EMAIL PROTECTED] wrote:

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread Peter Karman
On 05/05/2008 03:29 PM, J. Shirley wrote: My vote is hierarchy like: /foo /{token} # Can be pk1 if you so desire /- # - is never acceptable as an identifier /create # if you want an empty action here Now, I do vote against having an explicit

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-05 Thread luke saunders
On Mon, May 5, 2008 at 9:29 PM, J. Shirley [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 1:10 PM, luke saunders [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 6:16 PM, J. Shirley [EMAIL PROTECTED] wrote: On Mon, May 5, 2008 at 9:51 AM, luke saunders [EMAIL PROTECTED] wrote:

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-04 Thread luke saunders
On Sun, May 4, 2008 at 10:20 AM, Zbigniew Lukasiak [EMAIL PROTECTED] wrote: On Sun, May 4, 2008 at 2:38 AM, luke saunders [EMAIL PROTECTED] wrote: I have started to write a Catalyst base controller for REST style CRUD via DBIC. I have noticed that a number of other people have been

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-04 Thread J. Shirley
On Sun, May 4, 2008 at 1:52 AM, Zbigniew Lukasiak [EMAIL PROTECTED] wrote: On Sun, May 4, 2008 at 7:05 AM, J. Shirley [EMAIL PROTECTED] wrote: On a side note about REST - REST doesn't mean human readable URLs. It means representative URLs. The bit about cd/id/{CDID}/ smells like

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-04 Thread luke saunders
On Sun, May 4, 2008 at 2:18 PM, Jonathan Rockway [EMAIL PROTECTED] wrote: * On Sat, May 03 2008, luke saunders wrote: __PACKAGE__-config ( action = { setup = { PathPart = 'cd', Chained = '/api/rest/rest_base' } }, class = 'RestTestDB::CD', create_requires =

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-04 Thread J. Shirley
On Sun, May 4, 2008 at 8:52 AM, Zbigniew Lukasiak [EMAIL PROTECTED] wrote: Sorry but I don't understand your point - so maybe first I'll restate mine. If you have primary key in the database that is of type varchar (or char or ...) then 'create' is a legitimage value for that primary

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-04 Thread Christopher Laco
Zbigniew Lukasiak wrote: On Sun, May 4, 2008 at 3:54 PM, J. Shirley [EMAIL PROTECTED] wrote: On Sun, May 4, 2008 at 1:52 AM, Zbigniew Lukasiak [EMAIL PROTECTED] wrote: On Sun, May 4, 2008 at 7:05 AM, J. Shirley [EMAIL PROTECTED] wrote: On a side note about REST - REST doesn't mean

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-04 Thread Steve Atkins
On May 4, 2008, at 9:02 AM, Christopher Laco wrote: My pet peeve is that /foo/primary_key makes computers happy... but not people. /products/23 /products/ABC-1234 The first is the PK for a product record.. The second is the actual sku for a product... just a unique as the pk...but

Re: [Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-04 Thread Zbigniew Lukasiak
On Sun, May 4, 2008 at 6:06 PM, J. Shirley [EMAIL PROTECTED] wrote: On Sun, May 4, 2008 at 8:52 AM, Zbigniew Lukasiak [EMAIL PROTECTED] wrote: Sorry but I don't understand your point - so maybe first I'll restate mine. If you have primary key in the database that is of type varchar

[Catalyst] RFC: Catalyst::Controller::REST::DBIC

2008-05-03 Thread luke saunders
I have started to write a Catalyst base controller for REST style CRUD via DBIC. I have noticed that a number of other people have been working on or are thinking about working on something similar, most notabley J. Shirley who seems to be creating Catalyst::Controller::REST::DBIC::Item