Bugzilla – Attachment 49782 Details for
Bug 15126
REST API: Use newer version of Swagger2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15126: x-mojo-controller deprecation
Bug-15126-x-mojo-controller-deprecation.patch (text/plain), 1.87 KB, created by
Benjamin Rokseth
on 2016-04-01 12:21:52 UTC
(
hide
)
Description:
Bug 15126: x-mojo-controller deprecation
Filename:
MIME Type:
Creator:
Benjamin Rokseth
Created:
2016-04-01 12:21:52 UTC
Size:
1.87 KB
patch
obsolete
>From ef5799e1e37396d3879a433bd589ce827f55f70a Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 7 Oct 2015 14:49:17 +0000 >Subject: [PATCH] Bug 15126: 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/{Patrons.pm => Patron.pm} | 6 +++--- > api/v1/swagger.json | 2 -- > 2 files changed, 3 insertions(+), 5 deletions(-) > rename Koha/REST/V1/{Patrons.pm => Patron.pm} (96%) > >diff --git a/Koha/REST/V1/Patrons.pm b/Koha/REST/V1/Patron.pm >similarity index 96% >rename from Koha/REST/V1/Patrons.pm >rename to Koha/REST/V1/Patron.pm >index 426145f..2851308 100644 >--- a/Koha/REST/V1/Patrons.pm >+++ b/Koha/REST/V1/Patron.pm >@@ -1,4 +1,4 @@ >-package Koha::REST::V1::Patrons; >+package Koha::REST::V1::Patron; > > # This file is part of Koha. > # >@@ -22,7 +22,7 @@ use Mojo::Base 'Mojolicious::Controller'; > use C4::Auth qw( haspermission ); > use Koha::Patrons; > >-sub list_patrons { >+sub list { > my ($c, $args, $cb) = @_; > > my $user = $c->stash('koha.user'); >@@ -35,7 +35,7 @@ sub list_patrons { > $c->$cb($patrons->unblessed, 200); > } > >-sub get_patron { >+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 8f32781..e821c44 100644 >--- a/api/v1/swagger.json >+++ b/api/v1/swagger.json >@@ -16,7 +16,6 @@ > "paths": { > "/patrons": { > "get": { >- "x-mojo-controller": "Koha::REST::V1::Patrons", > "operationId": "listPatrons", > "tags": ["patrons"], > "produces": [ >@@ -43,7 +42,6 @@ > }, > "/patrons/{borrowernumber}": { > "get": { >- "x-mojo-controller": "Koha::REST::V1::Patrons", > "operationId": "getPatron", > "tags": ["patrons"], > "parameters": [ >-- >2.1.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 15126
:
44372
|
44373
|
44374
|
44386
|
47785
|
47828
|
47829
|
47843
|
47844
|
48226
|
49781
|
49782
|
49783
|
49845
|
49846
|
49847
|
50142
|
50916
|
50917
|
50918
|
50919