View | Details | Raw Unified | Return to bug 20004
Collapse All | Expand All

(-)a/Koha/REST/V1/Cities.pm (-1 / +24 lines)
Lines 23-28 use Koha::Cities; Link Here
23
23
24
use Try::Tiny;
24
use Try::Tiny;
25
25
26
=head1 API
27
28
=head2 Class Methods
29
30
=head3 list
31
32
=cut
33
26
sub list {
34
sub list {
27
    my $c = shift->openapi->valid_input or return;
35
    my $c = shift->openapi->valid_input or return;
28
36
Lines 44-49 sub list { Link Here
44
52
45
}
53
}
46
54
55
=head3 get
56
57
=cut
58
47
sub get {
59
sub get {
48
    my $c = shift->openapi->valid_input or return;
60
    my $c = shift->openapi->valid_input or return;
49
61
Lines 56-61 sub get { Link Here
56
    return $c->render( status => 200, openapi => _to_api($city->TO_JSON) );
68
    return $c->render( status => 200, openapi => _to_api($city->TO_JSON) );
57
}
69
}
58
70
71
=head3 add
72
73
=cut
74
59
sub add {
75
sub add {
60
    my $c = shift->openapi->valid_input or return;
76
    my $c = shift->openapi->valid_input or return;
61
77
Lines 80-85 sub add { Link Here
80
    };
96
    };
81
}
97
}
82
98
99
=head3 update
100
101
=cut
102
83
sub update {
103
sub update {
84
    my $c = shift->openapi->valid_input or return;
104
    my $c = shift->openapi->valid_input or return;
85
105
Lines 108-113 sub update { Link Here
108
    };
128
    };
109
}
129
}
110
130
131
=head3 delete
132
133
=cut
134
111
sub delete {
135
sub delete {
112
    my $c = shift->openapi->valid_input or return;
136
    my $c = shift->openapi->valid_input or return;
113
137
114
- 

Return to bug 20004