allow creating multiple related columns when updating or creating new records
[catagits/Catalyst-Controller-DBIC-API.git] / t / lib / RestTest / Controller / API / REST / Artist.pm
index d2ceada..ea5a4bc 100644 (file)
@@ -7,8 +7,8 @@ __PACKAGE__->config
     ( action => { setup => { PathPart => 'artist', Chained => '/api/rest/rest_base' } },
       class => 'RestTestDB::Artist',
       create_requires => ['name'],
-      create_allows => ['name'],
-      update_allows => ['name'],
+      create_allows => ['name', { cds => ['*'] }],
+      update_allows => ['name', { cds => ['*'] }],
       prefetch_allows => [[qw/ cds /],{ 'cds' => 'tracks'}],
       );