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

(-)a/Koha/REST/V1/Patron.pm (-2 / +2 lines)
Lines 1-4 Link Here
1
package Koha::REST::V1::Patron;
1
package Koha::REST::V1::Patrons;
2
2
3
# This file is part of Koha.
3
# This file is part of Koha.
4
#
4
#
Lines 27-33 use Try::Tiny; Link Here
27
27
28
=head1 NAME
28
=head1 NAME
29
29
30
Koha::REST::V1::Patron
30
Koha::REST::V1::Patrons
31
31
32
=head1 API
32
=head1 API
33
33
(-)a/api/v1/swagger/paths/patrons.json (-6 / +5 lines)
Lines 1-7 Link Here
1
{
1
{
2
  "/patrons": {
2
  "/patrons": {
3
    "get": {
3
    "get": {
4
      "x-mojo-to": "Patron#list",
4
      "x-mojo-to": "Patrons#list",
5
      "operationId": "listPatrons",
5
      "operationId": "listPatrons",
6
      "tags": ["patrons"],
6
      "tags": ["patrons"],
7
      "produces": [
7
      "produces": [
Lines 490-496 Link Here
490
      }
490
      }
491
    },
491
    },
492
    "post": {
492
    "post": {
493
      "x-mojo-to": "Patron#add",
493
      "x-mojo-to": "Patrons#add",
494
      "operationId": "addPatron",
494
      "operationId": "addPatron",
495
      "tags": ["patrons"],
495
      "tags": ["patrons"],
496
      "parameters": [{
496
      "parameters": [{
Lines 565-571 Link Here
565
  },
565
  },
566
  "/patrons/{borrowernumber}": {
566
  "/patrons/{borrowernumber}": {
567
    "get": {
567
    "get": {
568
      "x-mojo-to": "Patron#get",
568
      "x-mojo-to": "Patrons#get",
569
      "operationId": "getPatron",
569
      "operationId": "getPatron",
570
      "tags": ["patrons"],
570
      "tags": ["patrons"],
571
      "parameters": [{
571
      "parameters": [{
Lines 621-627 Link Here
621
      }
621
      }
622
    },
622
    },
623
    "put": {
623
    "put": {
624
      "x-mojo-to": "Patron#update",
624
      "x-mojo-to": "Patrons#update",
625
      "operationId": "updatePatron",
625
      "operationId": "updatePatron",
626
      "tags": ["patrons"],
626
      "tags": ["patrons"],
627
      "parameters": [
627
      "parameters": [
Lines 699-705 Link Here
699
      }
699
      }
700
    },
700
    },
701
    "delete": {
701
    "delete": {
702
      "x-mojo-to": "Patron#delete",
702
      "x-mojo-to": "Patrons#delete",
703
      "operationId": "deletePatron",
703
      "operationId": "deletePatron",
704
      "tags": ["patrons"],
704
      "tags": ["patrons"],
705
      "parameters": [{
705
      "parameters": [{
706
- 

Return to bug 16330