use JSON instead of JSON::Any to get rid of the CPAN Testers failures when only JSON...
[catagits/Catalyst-Controller-DBIC-API.git] / lib / Catalyst / Controller / DBIC / API / StaticArguments.pm
index 063b75f..e2c2c90 100644 (file)
@@ -31,7 +31,7 @@ foreach my $var (qw/create_requires create_allows update_requires update_allows/
         traits => ['Array'],
         default => sub { [] },
         trigger => sub
-        {   
+        {
             my ($self, $new) = @_;
             $self->check_column_relation($_, 1) for @$new;
         },
@@ -122,6 +122,14 @@ prefetch_arg controls how to reference 'prefetch' in the the request_data
 
 has 'prefetch_arg' => ( is => 'ro', isa => Str, default => 'list_prefetch' );
 
+=attribute_public stash_key is: ro, isa: Str, default: 'response'
+
+stash_key controls where in stash request_data should be stored
+
+=cut
+
+has 'stash_key' => ( is => 'ro', isa => Str, default => 'response');
+
 =attribute_public data_root is: ro, isa: Str, default: 'list'
 
 data_root controls how to reference where the data is in the the request_data
@@ -130,6 +138,15 @@ data_root controls how to reference where the data is in the the request_data
 
 has 'data_root' => ( is => 'ro', isa => Str, default => 'list');
 
+=attribute_public item_root is: ro, isa: Str, default: 'data'
+
+item_root controls how to reference where the data for single object
+requests is in the the request_data
+
+=cut
+
+has 'item_root' => ( is => 'ro', isa => Str, default => 'data');
+
 =attribute_public total_entries_arg is: ro, isa: Str, default: 'totalcount'
 
 total_entries_arg controls how to reference 'total_entries' in the the request_data
@@ -140,7 +157,7 @@ has 'total_entries_arg' => ( is => 'ro', isa => Str, default => 'totalcount' );
 
 =attribute_public use_json_boolean is: ro, isa: Bool, default: 0
 
-use_json_boolean controls whether JSON::Any boolean types are used in the success parameter of the response or if raw strings are used
+use_json_boolean controls whether JSON boolean types are used in the success parameter of the response or if raw strings are used
 
 =cut