1 package Koha::Plugin::BadAPIRoute;
5 use Mojo::JSON qw( decode_json );
7 use base qw(Koha::Plugins::Base);
11 name => 'Bad API Route Plugin',
13 description => 'Test plugin for bad API route',
14 date_authored => '2018-',
15 date_updated => '2013-01-14',
16 minimum_version => '17.11',
17 maximum_version => undef,
19 my_example_tag => 'find_me',
23 my ( $class, $args ) = @_;
24 $args->{'metadata'} = $metadata;
25 my $self = $class->SUPER::new($args);
34 my ( $self, $args ) = @_;
38 "/patrons/{patron_id}/bother_wrong": {
40 "x-mojo-to": "Koha::Plugin::BadAPIRoute#bother",
41 "operationId": "BotherPatron",
46 "description": "Internal patron identifier",
55 "description": "A bothered patron",
60 "description": "If the patron has been bothered",
67 "description": "An error occurred",
72 "description": "An explanation for the error",
79 "x-koha-authorization": {
89 return decode_json($spec);