|
Lines 1-20
Link Here
|
| 1 |
--- |
1 |
--- |
| 2 |
/circulation-rules/kinds: |
2 |
/circulation_rules: |
| 3 |
get: |
3 |
get: |
| 4 |
x-mojo-to: CirculationRules#get_kinds |
4 |
x-mojo-to: CirculationRules#list_effective_rules |
| 5 |
operationId: getCirculationRuleKinds |
5 |
operationId: listCirculationRules |
| 6 |
tags: |
6 |
tags: |
| 7 |
- circulation_rules |
7 |
- circulation_rules |
| 8 |
summary: Get circulation rules kinds |
8 |
summary: Get circulation rules for this item/library/patron combination |
| 9 |
produces: |
9 |
produces: |
| 10 |
- application/json |
10 |
- application/json |
|
|
11 |
parameters: |
| 12 |
- name: itemtype |
| 13 |
in: query |
| 14 |
description: The itemtype |
| 15 |
required: false |
| 16 |
type: string |
| 17 |
- name: library |
| 18 |
in: query |
| 19 |
description: The library code |
| 20 |
required: false |
| 21 |
type: string |
| 22 |
- name: category |
| 23 |
in: query |
| 24 |
description: The patron category |
| 25 |
required: false |
| 26 |
type: string |
| 27 |
- name: rules |
| 28 |
in: query |
| 29 |
description: A comma-separated list of rule kinds |
| 30 |
required: false |
| 31 |
type: array |
| 32 |
items: |
| 33 |
type: string |
| 34 |
collectionFormat: csv |
| 11 |
responses: |
35 |
responses: |
| 12 |
"200": |
36 |
"200": |
| 13 |
description: A map of rule kind information |
37 |
description: A list of rules for this itemtype, library and patron category combination |
| 14 |
schema: |
38 |
schema: |
| 15 |
type: object |
39 |
type: object |
| 16 |
additionalProperties: |
40 |
additionalProperties: |
| 17 |
$ref: "../swagger.yaml#/definitions/circ-rule-kind" |
41 |
type: [ 'string', 'integer' ] |
|
|
42 |
"400": |
| 43 |
description: Bad request |
| 44 |
schema: |
| 45 |
$ref: "../swagger.yaml#/definitions/error" |
| 18 |
"403": |
46 |
"403": |
| 19 |
description: Access forbidden |
47 |
description: Access forbidden |
| 20 |
schema: |
48 |
schema: |
|
Lines 30-72
Link Here
|
| 30 |
description: Under maintenance |
58 |
description: Under maintenance |
| 31 |
schema: |
59 |
schema: |
| 32 |
$ref: "../swagger.yaml#/definitions/error" |
60 |
$ref: "../swagger.yaml#/definitions/error" |
| 33 |
/circulation-rules/{itemtype}/{library}/{category}: |
61 |
x-koha-authorization: |
|
|
62 |
permissions: |
| 63 |
- circulate: circulate_remaining_permissions |
| 64 |
/circulation_rules/kinds: |
| 34 |
get: |
65 |
get: |
| 35 |
x-mojo-to: CirculationRules#list_effective_rules |
66 |
x-mojo-to: CirculationRules#get_kinds |
| 36 |
operationId: listCirculationRules |
67 |
operationId: getCirculationRuleKinds |
| 37 |
tags: |
68 |
tags: |
| 38 |
- circulation_rules |
69 |
- circulation_rules |
| 39 |
summary: Get circulation rules for this item/library/patron combination |
70 |
summary: Get circulation rules kinds |
| 40 |
produces: |
71 |
produces: |
| 41 |
- application/json |
72 |
- application/json |
| 42 |
parameters: |
|
|
| 43 |
- name: itemtype |
| 44 |
in: path |
| 45 |
description: The itemtype |
| 46 |
required: true |
| 47 |
type: string |
| 48 |
- name: library |
| 49 |
in: path |
| 50 |
description: The library code |
| 51 |
required: true |
| 52 |
type: string |
| 53 |
- name: category |
| 54 |
in: path |
| 55 |
description: The patron category |
| 56 |
required: true |
| 57 |
type: string |
| 58 |
- name: rules |
| 59 |
in: query |
| 60 |
description: A comma-separated list of rule kinds |
| 61 |
type: array |
| 62 |
items: |
| 63 |
type: string |
| 64 |
collectionFormat: csv |
| 65 |
responses: |
73 |
responses: |
| 66 |
"200": |
74 |
"200": |
| 67 |
description: A list of rules for this itemtype, library and patron category combination |
75 |
description: A map of rule kind information |
| 68 |
schema: |
76 |
schema: |
| 69 |
type: object |
77 |
type: object |
|
|
78 |
additionalProperties: |
| 79 |
$ref: "../swagger.yaml#/definitions/circ-rule-kind" |
| 70 |
"403": |
80 |
"403": |
| 71 |
description: Access forbidden |
81 |
description: Access forbidden |
| 72 |
schema: |
82 |
schema: |
|
Lines 85-87
Link Here
|
| 85 |
x-koha-authorization: |
95 |
x-koha-authorization: |
| 86 |
permissions: |
96 |
permissions: |
| 87 |
- circulate: circulate_remaining_permissions |
97 |
- circulate: circulate_remaining_permissions |
|
|
98 |
|