blib/lib/Mojolicious/Command/generate/routes_restsful_just_routes.pm

filter: Statementstmt 16.3% 19 / 116 Branchbran 0.0% 0 / 60 Conditioncond 0.0% 0 / 56 MC/DCmcdc 0.0% 0 / 34 Subroutinesub 36.3% 4 / 11 Podpod 100% 1 / 1 totaltotal 8.6% 24 / 278 CC 57 SCAR 54.0
CC
57
Cov
8%
_make_site
506.0
_api_site
132.0
_sub_api_site
132.0
CRAP 222.0
↑ Summary
1 package Mojolicious::Command::generate::routes_restsful_just_routes;
2 1 ▶use Lingua::EN::Inflect 'PL';
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use Mojo::Base 'Mojolicious::Command';
Subroutine BEGIN: called CC=1 SCAR=0.0
4
5 1 ▶use Mojo::Util qw(class_to_file class_to_path camelize class_to_path);
Subroutine BEGIN: called CC=1 SCAR=0.0
6
7 1 has description =>
8 'Generate Mojolicious route code using a Mojolicious::Plugin::Routes::Restful hash';
9 1 has usage =>
10 "Usage: $0 generate Mojolicious route code using a Mojolicious::Plugin::Routes::Restful hash\n";
11
12 1 our $VERSION = '0.0.1';
13 1 our @all_routes = ();
14 1 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
15
16 1 $Data::Dumper::Indent = 0;
17 1 $Data::Dumper::Terse = 1;
18
19 0 ▶sub run {
Subroutine run: not called CC=7 SCAR=40.3
Pod documented
20 0 my ( $self, $name, $in_routes ) = @_;
21
22
23 # Script
24
25 0 for my $sub_ref (qw/ PARENT CONFIG /) {
26 die __PACKAGE__, ": missing '$sub_ref' hash in parameters\n"
27 0 ▶ unless exists( $in_routes->{$sub_ref} );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $in_routes->{$sub_ref} 0 0 0
28 }
29
30 0 my $config = $in_routes->{CONFIG};
31
32 0 my $routes = $in_routes->{PARENT};
33
34 0 foreach my $key ( keys( %{$routes} ) ) {
35
36 my $resource =
37 0 _make_site( "PARENT", $key, $routes->{$key}, $config, $key, $key );
38
39 0 my $route = $routes->{$key};
40
41 0 foreach my $inline_key ( keys( %{ $route->{INLINE} } ) ) {
42
43 die __PACKAGE__, ": INLINE must be a Hash Ref\n"
44 0 ▶ if ( ref( $route->{INLINE} ) ne 'HASH' );
Branch: 1 branch
BranchTrueFalseTotal
if ref $route->{"INLINE"} ne "HASH" 0 0 0
45
46 _make_site( "INLINE", $inline_key, $route->{INLINE}->{$inline_key},
47 0 $config, $key, $resource, $routes->{$key}->{STASH} );
48
49 }
50
51 0 foreach my $sub_route_key ( keys( %{ $route->{CHILD} } ) ) {
52
53 _make_site( "CHILD", $sub_route_key,
54 $route->{CHILD}->{$sub_route_key},
55 0 $config, $key, $resource, $routes->{$key}->{STASH} );
56
57 }
58 }
59
60 0 $self->render_to_rel_file( 'just_code', $name, \@all_routes);
61
62
63
64 }
65
66
67 0 ▶sub _get_methods {
Subroutine _get_methods: not called CC=2 SCAR=17.9
68 0 my ($via) = @_;
69
70 0 ▶ return "['GET']"
Branch: 1 branch
BranchTrueFalseTotal
unless $via 0 0 0
71 unless ($via);
72 0 my $valid = {
73 GET => 1,
74 POST => 1,
75 PUT => 1,
76 PATCH => 1,
77 DELETE => 1
78 };
79
80 0 my @uc_via = map( uc($_), @{$via} );
81
82 0 return Dumper(\@uc_via);
83
84 }
85
86 0 ▶sub _make_site {
Subroutine _make_site: not called CC=22 SCAR=62.3
87
88 0 my ( $type, $key, $route, $config, $parent, $resource, $parent_stash ) = @_;
89
90 0 ▶ my $route_stash = $route->{STASH} || {};
Condition0%0/2
$route->{'STASH'} || {}
l!l
00
MC/DC0%0/1
$route->{'STASH'} || {}
$route->{'STASH'}
Truth table0%0/2
A
A= $route->{'STASH'}
Aresult
11
00
91 0 ▶ $route_stash = { %{$route_stash}, %{$parent_stash} }
Branch: 1 branch
BranchTrueFalseTotal
if $parent_stash 0 0 0
92 if ($parent_stash);
93 0 ▶ my $action = $route->{ACTION} || "show";
Condition0%0/2
$route->{'ACTION'} || 'show'
l!l
00
MC/DC0%0/1
$route->{'ACTION'} || 'show'
$route->{'ACTION'}
Truth table0%0/2
A
A= $route->{'ACTION'}
Aresult
11
00
94 0 my $methods = _get_methods( $route->{VIA} );
95 0 ▶ my $controller = $route->{CONTROLLER} || $key;
Condition0%0/3
$route->{'CONTROLLER'} || $key
l!l&&r!l&&!r
000
MC/DC0%0/2
$route->{'CONTROLLER'} || $key
$route->{'CONTROLLER'} $key
Truth table0%0/3
A || B
A= $route->{'CONTROLLER'}B= $key
ABresult
1X1
011
000
96
97 0 ▶ if ( $type eq 'PARENT' ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($type eq "PARENT") 0 0 0
98
99 $resource = _api_site( $key, $route->{API}, $config->{API} )
100 0 ▶ if ( exists( $route->{API} ) );
Branch: 1 branch
BranchTrueFalseTotal
if exists $route->{"API"} 0 0 0
101
102 return $resource || $key
103 0 ▶ if ( exists( $route->{API_ONLY} ) );
Branch: 1 branch
BranchTrueFalseTotal
if exists $route->{"API_ONLY"} 0 0 0
Condition0%0/3
$resource || $key
l!l&&r!l&&!r
000
MC/DC0%0/2
$resource || $key
$resource $key
Truth table0%0/3
A || B
A= $resourceB= $key
ABresult
1X1
011
000
104
105 push(@all_routes,{url=>"/$key",
106 methods=>$methods,
107 controller=>"$controller#$action",
108 stash=>Dumper( $route_stash)})
109
110 0 ▶ unless ( exists( $route->{NO_ROOT} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $route->{"NO_ROOT"} 0 0 0
111
112 push(@all_routes,{url=>"/$key/:id",
113 methods=>$methods,
114 controller=>"$controller#$action",
115 stash=>Dumper( $route_stash)})
116 0 ▶ unless ( exists( $route->{NO_ID} ) );
Branch: 1 branch
BranchTrueFalseTotal
unless exists $route->{"NO_ID"} 0 0 0
117
118 0 ▶ return $resource || $key
Condition0%0/3
$resource || $key
l!l&&r!l&&!r
000
MC/DC0%0/2
$resource || $key
$resource $key
Truth table0%0/3
A || B
A= $resourceB= $key
ABresult
1X1
011
000
119
120 }
121 0 ▶ $controller = $route->{CONTROLLER} || $parent; #aways use parent on kids
Condition0%0/3
$route->{'CONTROLLER'} || $parent
l!l&&r!l&&!r
000
MC/DC0%0/2
$route->{'CONTROLLER'} || $parent
$route->{'CONTROLLER'} $parent
Truth table0%0/3
A || B
A= $route->{'CONTROLLER'}B= $parent
ABresult
1X1
011
000
122 0 $route_stash->{parent} = $resource;
123 0 $route_stash->{child} = $key;
124 0 ▶ if ( $type eq 'INLINE' ) {
Branch: 2 branches
BranchTrueFalseTotal
if ($type eq 'INLINE') { } 0 0 0
elsif ($type eq 'CHILD') { } 0 0 0
125
126 0 ▶ $action = $route->{ACTION} || $key;
Condition0%0/3
$route->{'ACTION'} || $key
l!l&&r!l&&!r
000
MC/DC0%0/2
$route->{'ACTION'} || $key
$route->{'ACTION'} $key
Truth table0%0/3
A || B
A= $route->{'ACTION'}B= $key
ABresult
1X1
011
000
127
128 _sub_inline_api_site( $resource, $key, $route->{API}, $config->{API} )
129 0 ▶ if ( exists( $route->{API} ) );
Branch: 1 branch
BranchTrueFalseTotal
if exists $route->{"API"} 0 0 0
130
131 return
132 0 ▶ if ( exists( $route->{API_ONLY} ) );
Branch: 1 branch
BranchTrueFalseTotal
if exists $route->{"API_ONLY"} 0 0 0
133
134 0 ▶ if ( exists( $route->{NO_ID} ) ) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $route->{'NO_ID'}) { } 0 0 0
135 0 push(@all_routes,{url=>"/$parent/$key",
136 methods=>$methods,
137 controller=>"$controller#$action",
138 stash=>Dumper( $route_stash)});
139 }
140 else {
141 0 push(@all_routes,{url=>"/$parent/:id/$key",
142 methods=>$methods,
143 controller=>"$controller#$action",
144 stash=>Dumper( $route_stash)});
145
146 }
147 }
148 elsif ( $type eq 'CHILD' ) {
149
150 _sub_api_site( $resource, $key, $route->{API}, $config->{API} )
151 0 ▶ if ( exists( $route->{API} ) );
Branch: 1 branch
BranchTrueFalseTotal
if exists $route->{"API"} 0 0 0
152
153 return
154 0 ▶ if ( exists( $route->{API_ONLY} ) );
Branch: 1 branch
BranchTrueFalseTotal
if exists $route->{"API_ONLY"} 0 0 0
155
156 0 ▶ $action = $route->{ACTION} || $key;
Condition0%0/3
$route->{'ACTION'} || $key
l!l&&r!l&&!r
000
MC/DC0%0/2
$route->{'ACTION'} || $key
$route->{'ACTION'} $key
Truth table0%0/3
A || B
A= $route->{'ACTION'}B= $key
ABresult
1X1
011
000
157 0 push(@all_routes,{url=>"/$parent/:id/$key",
158 methods=>$methods,
159 controller=>"$controller#$action",
160 stash=>Dumper( $route_stash)});
161 0 push(@all_routes,{url=>"/$parent/:id/$key/:child_id",
162 methods=>$methods,
163 controller=>"$controller#$action",
164 stash=>Dumper( $route_stash)});
165 }
166
167 }
168
169 0 ▶sub _api_url {
Subroutine _api_url: not called CC=3 SCAR=24.8
170
171 0 my ( $resource, $config ) = @_;
172 0 ▶ my $ver = $config->{VERSION} || "";
Condition0%0/2
$config->{'VERSION'} || ''
l!l
00
MC/DC0%0/1
$config->{'VERSION'} || ''
$config->{'VERSION'}
Truth table0%0/2
A
A= $config->{'VERSION'}
Aresult
11
00
173 0 ▶ my $prefix = $config->{RESOURCE_PREFIX} || "";
Condition0%0/2
$config->{'RESOURCE_PREFIX'} || ''
l!l
00
MC/DC0%0/1
$config->{'RESOURCE_PREFIX'} || ''
$config->{'RESOURCE_PREFIX'}
Truth table0%0/2
A
A= $config->{'RESOURCE_PREFIX'}
Aresult
11
00
174 0 my $url = join( "/", grep( $_ ne "", ( $ver, $prefix, $resource ) ) );
175 0 return $url;
176 }
177
178 0 ▶sub _api_site {
Subroutine _api_site: not called CC=11 SCAR=48.8
179
180 0 my ( $key, $api, $config ) = @_;
181
182 0 ▶ my $resource = $api->{RESOURCE} || PL($key);
Condition0%0/3
$api->{'RESOURCE'} || PL($key)
l!l&&r!l&&!r
000
MC/DC0%0/2
$api->{'RESOURCE'} || PL($key)
$api->{'RESOURCE'} PL($key)
Truth table0%0/3
A || B
A= $api->{'RESOURCE'}B= PL($key)
ABresult
1X1
011
000
183 0 my $verbs = $api->{VERBS};
184 0 ▶ my $stash = $api->{STASH} || {};
Condition0%0/2
$api->{'STASH'} || {}
l!l
00
MC/DC0%0/1
$api->{'STASH'} || {}
$api->{'STASH'}
Truth table0%0/2
A
A= $api->{'STASH'}
Aresult
11
00
185 0 ▶ my $contoller = $api->{CONTROLLER} || $resource;
Condition0%0/3
$api->{'CONTROLLER'} || $resource
l!l&&r!l&&!r
000
MC/DC0%0/2
$api->{'CONTROLLER'} || $resource
$api->{'CONTROLLER'} $resource
Truth table0%0/3
A || B
A= $api->{'CONTROLLER'}B= $resource
ABresult
1X1
011
000
186 0 ▶ my $contoller_prefix = $config->{PREFIX} || "api";
Condition0%0/2
$config->{'PREFIX'} || 'api'
l!l
00
MC/DC0%0/1
$config->{'PREFIX'} || 'api'
$config->{'PREFIX'}
Truth table0%0/2
A
A= $config->{'PREFIX'}
Aresult
11
00
187 0 my $url = _api_url( $resource, $config );
188
189
190
191 push(@all_routes,{url=>"/" .$url ,
192 methods=>"['GET']",
193 controller=>"$contoller_prefix-$contoller#get",
194 stash=>Dumper($stash)})
195 0 ▶ if ( $verbs->{RETRIEVE} );
Branch: 1 branch
BranchTrueFalseTotal
if $verbs->{"RETRIEVE"} 0 0 0
196
197 push(@all_routes,{url=>"/" .$url."/:id" ,
198 methods=>"['GET']",
199 controller=>"$contoller_prefix-$contoller#get",
200 stash=>Dumper($stash)})
201 0 ▶ if ( $verbs->{RETRIEVE} );
Branch: 1 branch
BranchTrueFalseTotal
if $verbs->{"RETRIEVE"} 0 0 0
202
203
204 push(@all_routes,{url=>"/" .$url ,
205 methods=>"['POST']",
206 controller=>"$contoller_prefix-$contoller#create",
207 stash=>Dumper($stash)})
208 0 ▶ if ( $verbs->{CREATE} );
Branch: 1 branch
BranchTrueFalseTotal
if $verbs->{"CREATE"} 0 0 0
209
210 push(@all_routes,{url=>"/" .$url. "/:id",
211 methods=>"['PATCH']",
212 controller=>"$contoller_prefix-$contoller#update",
213 stash=>Dumper($stash)})
214 0 ▶ if ( $verbs->{UPDATE} );
Branch: 1 branch
BranchTrueFalseTotal
if $verbs->{"UPDATE"} 0 0 0
215
216 push(@all_routes,{url=>"/" .$url. "/:id",
217 methods=>"['PUT']",
218 controller=>"$contoller_prefix-$contoller#replace",
219 stash=>Dumper($stash)})
220 0 ▶ if ( $verbs->{REPLACE} );
Branch: 1 branch
BranchTrueFalseTotal
if $verbs->{"REPLACE"} 0 0 0
221
222 push(@all_routes,{url=>"/" .$url. "/:id",
223 methods=>"['DELETE']",
224 controller=>"$contoller_prefix-$contoller#delete",
225 stash=>Dumper($stash)})
226 0 ▶ if ( $verbs->{DELETE} );
Branch: 1 branch
BranchTrueFalseTotal
if $verbs->{"DELETE"} 0 0 0
227
228 0 return $resource;
229
230 }
231
232 0 ▶sub _sub_api_site {
Subroutine _sub_api_site: not called CC=11 SCAR=48.8
233
234 0 my ( $parent, $key, $api, $config ) = @_;
235
236 0 ▶ my $child_resource = $api->{RESOURCE} || PL($key);
Condition0%0/3
$api->{'RESOURCE'} || PL($key)
l!l&&r!l&&!r
000
MC/DC0%0/2
$api->{'RESOURCE'} || PL($key)
$api->{'RESOURCE'} PL($key)
Truth table0%0/3
A || B
A= $api->{'RESOURCE'}B= PL($key)
ABresult
1X1
011
000
237 0 my $verbs = $api->{VERBS};
238 0 ▶ my $stash = $api->{STASH} || {};
Condition0%0/2
$api->{'STASH'} || {}
l!l
00
MC/DC0%0/1
$api->{'STASH'} || {}
$api->{'STASH'}
Truth table0%0/2
A
A= $api->{'STASH'}
Aresult
11
00
239 0 ▶ my $child_controller = $api->{CONTROLLER} || $child_resource;
Condition0%0/3
$api->{'CONTROLLER'} || $child_resource
l!l&&r!l&&!r
000
MC/DC0%0/2
$api->{'CONTROLLER'} || $child_resource
$api->{'CONTROLLER'} $child_resource
Truth table0%0/3
A || B
A= $api->{'CONTROLLER'}B= $child_resource
ABresult
1X1
011
000
240 0 ▶ my $contoller_prefix = $config->{PREFIX} || "api";
Condition0%0/2
$config->{'PREFIX'} || 'api'
l!l
00
MC/DC0%0/1
$config->{'PREFIX'} || 'api'
$config->{'PREFIX'}
Truth table0%0/2
A
A= $config->{'PREFIX'}
Aresult
11
00
241 0 my $url = _api_url( $parent, $config );
242 0 $stash->{parent} = $parent;
243 0 $stash->{child} = $child_resource;
244
245
246 push(@all_routes,{url=>"/" .$url ."/:id/" . $child_resource,
247 methods=>"['GET']",
248 controller=>"$contoller_prefix-$parent#$child_resource#get",
249 stash=>Dumper($stash)})
250 0 ▶ if ( $verbs->{RETRIEVE} );
Branch: 1 branch
BranchTrueFalseTotal
if $verbs->{"RETRIEVE"} 0 0 0
251
252 push(@all_routes,{url=>"/" .$url. "/:id/" . $child_resource."/:child_id",
253 methods=>"['GET']",
254 controller=>"$contoller_prefix-$child_controller#get",
255 stash=>Dumper($stash)})
256 0 ▶ if ( $verbs->{RETRIEVE} );
Branch: 1 branch
BranchTrueFalseTotal
if $verbs->{"RETRIEVE"} 0 0 0
257
258 push(@all_routes,{url=>"/" .$url. "/:id/" . $child_resource,
259 methods=>"['POST']",
260 controller=>"$contoller_prefix-$child_controller#create",
261 stash=>Dumper($stash)})
262 0 ▶ if ( $verbs->{CREATE} );
Branch: 1 branch
BranchTrueFalseTotal
if $verbs->{"CREATE"} 0 0 0
263
264 push(@all_routes,{url=>"/" .$url. "/:id/" . $child_resource."/:child_id",
265 methods=>"['PUT']",
266 controller=>"$contoller_prefix-$child_controller#replace",
267 stash=>Dumper($stash)})
268 0 ▶ if ( $verbs->{REPLACE} );
Branch: 1 branch
BranchTrueFalseTotal
if $verbs->{"REPLACE"} 0 0 0
269
270 push(@all_routes,{url=>"/" .$url. "/:id/" . $child_resource."/:child_id",
271 methods=>"['PATCH']",
272 controller=>"$contoller_prefix-$child_controller#update",
273 stash=>Dumper($stash)})
274 0 ▶ if ( $verbs->{UPDATE} );
Branch: 1 branch
BranchTrueFalseTotal
if $verbs->{"UPDATE"} 0 0 0
275
276 push(@all_routes,{url=>"/" .$url. "/:id/" . $child_resource."/:child_id",
277 methods=>"['DELETE']",
278 controller=>"$contoller_prefix-$child_controller#delete",
279 stash=>Dumper($stash)})
280 0 ▶ if ( $verbs->{DELETE} );
Branch: 1 branch
BranchTrueFalseTotal
if $verbs->{"DELETE"} 0 0 0
281 }
282
283 0 ▶sub _sub_inline_api_site {
Subroutine _sub_inline_api_site: not called CC=7 SCAR=40.3
284
285 0 my ( $parent, $key, $api, $config ) = @_;
286 0 my $verbs = $api->{VERBS};
287 0 ▶ my $child_resource = $api->{RESOURCE} || PL($key); #this should be action
Condition0%0/3
$api->{'RESOURCE'} || PL($key)
l!l&&r!l&&!r
000
MC/DC0%0/2
$api->{'RESOURCE'} || PL($key)
$api->{'RESOURCE'} PL($key)
Truth table0%0/3
A || B
A= $api->{'RESOURCE'}B= PL($key)
ABresult
1X1
011
000
288 0 ▶ my $stash = $api->{STASH} || {};
Condition0%0/2
$api->{'STASH'} || {}
l!l
00
MC/DC0%0/1
$api->{'STASH'} || {}
$api->{'STASH'}
Truth table0%0/2
A
A= $api->{'STASH'}
Aresult
11
00
289 0 ▶ my $action = $api->{ACTION} || $child_resource;
Condition0%0/3
$api->{'ACTION'} || $child_resource
l!l&&r!l&&!r
000
MC/DC0%0/2
$api->{'ACTION'} || $child_resource
$api->{'ACTION'} $child_resource
Truth table0%0/3
A || B
A= $api->{'ACTION'}B= $child_resource
ABresult
1X1
011
000
290 0 ▶ my $contoller_prefix = $config->{PREFIX} || "api";
Condition0%0/2
$config->{'PREFIX'} || 'api'
l!l
00
MC/DC0%0/1
$config->{'PREFIX'} || 'api'
$config->{'PREFIX'}
Truth table0%0/2
A
A= $config->{'PREFIX'}
Aresult
11
00
291 0 my $url = _api_url( $parent, $config );
292 0 $stash->{parent} = $parent;
293 0 $stash->{child} = $child_resource;
294
295 push(@all_routes,{url=>"/" .$url. "/:id/" . $child_resource,
296 methods=>"['GET']",
297 controller=>"$contoller_prefix-$parent#$action",
298 stash=>Dumper($stash)})
299 0 ▶ if ( $verbs->{RETRIEVE} );
Branch: 1 branch
BranchTrueFalseTotal
if $verbs->{"RETRIEVE"} 0 0 0
300
301 push(@all_routes,{url=>"/" .$url. "/:id/" . $child_resource,
302 methods=>"['PATCH']",
303 controller=>"$contoller_prefix-$parent#$action",
304 stash=>Dumper($stash)})
305
306 0 ▶ if ( $verbs->{UPDATE} );
Branch: 1 branch
BranchTrueFalseTotal
if $verbs->{"UPDATE"} 0 0 0
307
308 }
309
310
311 # Ooh. "Big Pink." It's the only gum with the breath-freshening power of ham.
312
313 1 1;
314
315 =pod
316
317 =head1 NAME
318
319 Mojolicious::Command::generate::routes_restsful_just_routes - Generate just the perl code for routes from a Mojolicious::Plugin::Routes::Restful HASH
320
321 =head1 SYNOPSIS
322
323 my $commands = Mojolicious::Commands->new;
324 my $gen = Mojolicious::Command::generate::routes_restsful_just_routes->new;
325 $gen->run('RoutesRestfulCode',{
326 CONFIG => { Namespaces => ['RouteRestfulApp::Controller'] },
327 PARENT => {...
328
329 =head1 DESCRIPTION
330
331 Give L<Mojolicious::Command::generate::routes_restsful_just_routes> a hash that was created for L<Mojolicious::Plugin::Routes::Restful>
332 it will generate the code for the described routes.
333
334 It is not intended to use this generator from the command line. Best to use it in a script. See the script dir for an example.
335
336 See L<Mojolicious::Plugin::Routes::Restful> for details on how to make a Hash for this generator.
337
338 =head1 ATTRIBUTES
339
340 L<Mojolicious::Command::generate::app> inherits all attributes from
341 L<Mojolicious::Command> and implements the following new ones.
342
343 =head2 description
344
345 my $description = $app->description;
346 $app = $app->description('Foo');
347
348 Short description of this command, used for the command list.
349
350 =head2 usage
351
352 my $usage = $app->usage;
353 $app = $app->usage('Foo');
354
355 Usage information for this command, used for the help screen.
356
357 =head1 METHODS
358
359 L<Mojolicious::Command::generate::routes_restsful> inherits all methods from
360 L<Mojolicious::Command> and implements the following new ones.
361
362 =head2 run
363
364 $app->run($name,$hash);
365
366 Generates the code. Where $name is the name of the file you want to create, and $hash is a valid L<Mojolicious::Plugin::Routes::Restful> hash.
367
368 =head1 SEE ALSO
369
370 L<Mojolicious>, L<Mojolicious::Guides>, L<http://mojolicious.org>, L<Mojolicious::Plugin::Routes::Restful>.
371
372 =head1 LICENSE AND COPYRIGHT
373
374 Copyright 2016 John Scoles.
375 This program is free software; you can redistribute it and/or modify it
376 under the terms of either: the GNU General Public License as published
377 by the Free Software Foundation; or the Artistic License.
378 See http://dev.perl.org/licenses/ for more information.
379
380 =cut
381
382 __DATA__
↑ Summary