From a310c3d06b7d3eb1e63cbe66dbc860a61de6dfde Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 7 Oct 2015 14:49:17 +0000 Subject: [PATCH] Bug 13799 - Followup: x-mojo-controller deprecation Remove the use of soon to be deprecated x-mojo-controller from our specification and replace with the recommended operationId format. --- Koha/REST/V1/Borrowers.pm | 4 ++-- api/v1/swagger.json | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Koha/REST/V1/Borrowers.pm b/Koha/REST/V1/Borrowers.pm index 7942b77..90de6ae 100644 --- a/Koha/REST/V1/Borrowers.pm +++ b/Koha/REST/V1/Borrowers.pm @@ -22,7 +22,7 @@ use Mojo::Base 'Mojolicious::Controller'; use C4::Auth qw( haspermission ); use Koha::Borrowers; -sub list_borrowers { +sub list { my ($c, $args, $cb) = @_; my $user = $c->stash('koha.user'); @@ -35,7 +35,7 @@ sub list_borrowers { $c->$cb($borrowers->unblessed, 200); } -sub get_borrower { +sub get { my ($c, $args, $cb) = @_; my $user = $c->stash('koha.user'); diff --git a/api/v1/swagger.json b/api/v1/swagger.json index 5654dc0..e7e61ee 100644 --- a/api/v1/swagger.json +++ b/api/v1/swagger.json @@ -16,7 +16,6 @@ "paths": { "/borrowers": { "get": { - "x-mojo-controller": "Koha::REST::V1::Borrowers", "operationId": "listBorrowers", "tags": ["borrowers"], "produces": [ @@ -43,7 +42,6 @@ }, "/borrowers/{borrowernumber}": { "get": { - "x-mojo-controller": "Koha::REST::V1::Borrowers", "operationId": "getBorrower", "tags": ["borrowers"], "parameters": [ -- 2.1.4