Bugzilla – Attachment 69508 Details for
Bug 16497
Add routes for library retrieval, update and deletion
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16497 - Add POD in Koha/REST/V1/Library.pm
Bug-16497---Add-POD-in-KohaRESTV1Librarypm.patch (text/plain), 1.67 KB, created by
Alex Arnaud
on 2017-12-05 15:11:21 UTC
(
hide
)
Description:
Bug 16497 - Add POD in Koha/REST/V1/Library.pm
Filename:
MIME Type:
Creator:
Alex Arnaud
Created:
2017-12-05 15:11:21 UTC
Size:
1.67 KB
patch
obsolete
>From 9d8a31f8d8c6e8251c634c0d8891d4d48eb33005 Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@biblibre.com> >Date: Tue, 5 Dec 2017 14:56:34 +0000 >Subject: [PATCH] Bug 16497 - Add POD in Koha/REST/V1/Library.pm > >--- > Koha/REST/V1/Library.pm | 40 ++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > >diff --git a/Koha/REST/V1/Library.pm b/Koha/REST/V1/Library.pm >index 9772217..c0b92b2 100644 >--- a/Koha/REST/V1/Library.pm >+++ b/Koha/REST/V1/Library.pm >@@ -24,6 +24,22 @@ use Scalar::Util qw( blessed ); > > use Try::Tiny; > >+=head1 NAME >+ >+Koha::REST::V1::Library - Koha REST API for handling libraries (V1) >+ >+=head1 API >+ >+=head2 Methods >+ >+=cut >+ >+=head3 list >+ >+Controller function that handles listing Koha::Library objects >+ >+=cut >+ > sub list { > my $c = shift->openapi->valid_input or return; > >@@ -51,6 +67,12 @@ sub list { > }; > } > >+=head3 get >+ >+Controller function that handles retrieving a single Koha::Library >+ >+=cut >+ > sub get { > my $c = shift->openapi->valid_input or return; > >@@ -64,6 +86,12 @@ sub get { > return $c->render( status => 200, openapi => $library ); > } > >+=head3 add >+ >+Controller function that handles adding a new Koha::Library object >+ >+=cut >+ > sub add { > my $c = shift->openapi->valid_input or return; > >@@ -89,6 +117,12 @@ sub add { > }; > } > >+=head3 update >+ >+Controller function that handles updating a Koha::Library object >+ >+=cut >+ > sub update { > my $c = shift->openapi->valid_input or return; > >@@ -114,6 +148,12 @@ sub update { > }; > } > >+=head3 delete >+ >+Controller function that handles deleting a Koha::Library object >+ >+=cut >+ > sub delete { > my $c = shift->openapi->valid_input or return; > >-- >2.7.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16497
:
51454
|
52905
|
53818
|
53819
|
54943
|
60801
|
60802
|
61164
|
61165
|
63160
|
63161
|
66837
|
66838
|
68746
|
68747
|
68748
|
68838
|
68839
|
68840
|
68841
|
69508
|
83913
|
83914
|
83915
|
83916
|
83917
|
83943
|
83945
|
83946
|
83947
|
83948
|
83949
|
84198
|
84588
|
84589
|
84590
|
84591
|
84592
|
84593
|
84734
|
84769