From 5f137b28e91dc52f45efe61cba0f322d3fe3d049 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 5 Dec 2017 16:43:00 -0300 Subject: [PATCH] Bug 16330: (QA follow-up) Repect guidelines on plurals Patron > Patrons Signed-off-by: Tomas Cohen Arazi Signed-off-by: Benjamin Rokseth Signed-off-by: Tomas Cohen Arazi Signed-off-by: Josef Moravec --- Koha/REST/V1/{Patron.pm => Patrons.pm} | 4 ++-- api/v1/swagger/paths/patrons.json | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) rename Koha/REST/V1/{Patron.pm => Patrons.pm} (99%) diff --git a/Koha/REST/V1/Patron.pm b/Koha/REST/V1/Patrons.pm similarity index 99% rename from Koha/REST/V1/Patron.pm rename to Koha/REST/V1/Patrons.pm index 52ffab3..357c099 100644 --- a/Koha/REST/V1/Patron.pm +++ b/Koha/REST/V1/Patrons.pm @@ -1,4 +1,4 @@ -package Koha::REST::V1::Patron; +package Koha::REST::V1::Patrons; # This file is part of Koha. # @@ -27,7 +27,7 @@ use Try::Tiny; =head1 NAME -Koha::REST::V1::Patron +Koha::REST::V1::Patrons =head1 API diff --git a/api/v1/swagger/paths/patrons.json b/api/v1/swagger/paths/patrons.json index 5e479c8..f4505a8 100644 --- a/api/v1/swagger/paths/patrons.json +++ b/api/v1/swagger/paths/patrons.json @@ -1,7 +1,7 @@ { "/patrons": { "get": { - "x-mojo-to": "Patron#list", + "x-mojo-to": "Patrons#list", "operationId": "listPatrons", "tags": ["patrons"], "produces": [ @@ -490,7 +490,7 @@ } }, "post": { - "x-mojo-to": "Patron#add", + "x-mojo-to": "Patrons#add", "operationId": "addPatron", "tags": ["patrons"], "parameters": [{ @@ -565,7 +565,7 @@ }, "/patrons/{borrowernumber}": { "get": { - "x-mojo-to": "Patron#get", + "x-mojo-to": "Patrons#get", "operationId": "getPatron", "tags": ["patrons"], "parameters": [{ @@ -621,7 +621,7 @@ } }, "put": { - "x-mojo-to": "Patron#update", + "x-mojo-to": "Patrons#update", "operationId": "updatePatron", "tags": ["patrons"], "parameters": [ @@ -699,7 +699,7 @@ } }, "delete": { - "x-mojo-to": "Patron#delete", + "x-mojo-to": "Patrons#delete", "operationId": "deletePatron", "tags": ["patrons"], "parameters": [{ -- 2.1.4