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

(-)a/Koha/REST/V1/Patrons.pm (-2 / +2 lines)
Lines 22-28 use Mojo::Base 'Mojolicious::Controller'; Link Here
22
use C4::Auth qw( haspermission );
22
use C4::Auth qw( haspermission );
23
use Koha::Borrowers;
23
use Koha::Borrowers;
24
24
25
sub list_patrons {
25
sub list {
26
    my ($c, $args, $cb) = @_;
26
    my ($c, $args, $cb) = @_;
27
27
28
    my $user = $c->stash('koha.user');
28
    my $user = $c->stash('koha.user');
Lines 35-41 sub list_patrons { Link Here
35
    $c->$cb($patrons->unblessed, 200);
35
    $c->$cb($patrons->unblessed, 200);
36
}
36
}
37
37
38
sub get_patron {
38
sub get {
39
    my ($c, $args, $cb) = @_;
39
    my ($c, $args, $cb) = @_;
40
40
41
    my $user = $c->stash('koha.user');
41
    my $user = $c->stash('koha.user');
(-)a/api/v1/swagger.json (-3 lines)
Lines 16-22 Link Here
16
  "paths": {
16
  "paths": {
17
    "/patrons": {
17
    "/patrons": {
18
      "get": {
18
      "get": {
19
        "x-mojo-controller": "Koha::REST::V1::Patrons",
20
        "operationId": "listPatrons",
19
        "operationId": "listPatrons",
21
        "tags": ["patrons"],
20
        "tags": ["patrons"],
22
        "produces": [
21
        "produces": [
Lines 43-49 Link Here
43
    },
42
    },
44
    "/patrons/{borrowernumber}": {
43
    "/patrons/{borrowernumber}": {
45
      "get": {
44
      "get": {
46
        "x-mojo-controller": "Koha::REST::V1::Patrons",
47
        "operationId": "getPatron",
45
        "operationId": "getPatron",
48
        "tags": ["patrons"],
46
        "tags": ["patrons"],
49
        "parameters": [
47
        "parameters": [
50
- 

Return to bug 13799