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

(-)a/Koha/REST/V1/CirculationRules.pm (-2 / +5 lines)
Lines 24-32 use Koha::CirculationRules; Link Here
24
use Try::Tiny;
24
use Try::Tiny;
25
25
26
sub get_kinds {
26
sub get_kinds {
27
    my ( $c, $args, $cb ) = @_;
27
    my $c = shift->openapi->valid_input or return;
28
28
29
    return $c->$cb( Koha::CirculationRules->rule_kinds, 200 );
29
    return $c->render(
30
        status => 200,
31
        openapi => Koha::CirculationRules->rule_kinds,
32
    );
30
}
33
}
31
34
32
1;
35
1;
(-)a/api/v1/swagger/paths/circulation-rules.json (-3 / +2 lines)
Lines 1-8 Link Here
1
{
1
{
2
  "/circulation-rules/kinds": {
2
  "/circulation-rules/kinds": {
3
    "get": {
3
    "get": {
4
      "x-mojo-controller": "Koha::REST::V1::CirculationRules",
4
      "x-mojo-to": "CirculationRules#get_kinds",
5
      "operationId": "get_kinds",
5
      "operationId": "getCirculationRuleKinds",
6
      "tags": ["cities"],
6
      "tags": ["cities"],
7
      "produces": [
7
      "produces": [
8
        "application/json"
8
        "application/json"
9
- 

Return to bug 18936