line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebAPI::DBIC::Resource::GenericRoot; |
2
|
|
|
|
|
|
|
$WebAPI::DBIC::Resource::GenericRoot::VERSION = '0.003002'; |
3
|
|
|
|
|
|
|
|
4
|
2
|
|
|
2
|
|
10749849
|
use Moo; |
|
2
|
|
|
|
|
33727
|
|
|
2
|
|
|
|
|
9
|
|
5
|
2
|
|
|
2
|
|
3408
|
use namespace::clean; |
|
2
|
|
|
|
|
18509
|
|
|
2
|
|
|
|
|
43
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
extends 'WebAPI::DBIC::Resource::Base'; |
8
|
|
|
|
|
|
|
with 'WebAPI::DBIC::Role::JsonEncoder', |
9
|
|
|
|
|
|
|
'WebAPI::DBIC::Resource::Role::Router', |
10
|
|
|
|
|
|
|
'WebAPI::DBIC::Resource::Role::DBICException', |
11
|
|
|
|
|
|
|
# for application/hal+json |
12
|
|
|
|
|
|
|
'WebAPI::DBIC::Resource::Role::Root', |
13
|
|
|
|
|
|
|
'WebAPI::DBIC::Resource::HAL::Role::Root', |
14
|
|
|
|
|
|
|
; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
1; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
__END__ |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=pod |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=encoding UTF-8 |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 NAME |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
WebAPI::DBIC::Resource::GenericRoot |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 VERSION |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
version 0.003002 |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 NAME |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
WebAPI::DBIC::Resource::GenericRoot - a set of roles to implement a 'root' resource describing the application |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 AUTHOR |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Tim Bunce <Tim.Bunce@pobox.com> |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Tim Bunce. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
45
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=cut |