Bug 26633: Add API documentation
[koha.git] / api / v1 / swagger / paths / circulation-rules.json
1 {
2   "/circulation-rules/kinds": {
3     "get": {
4       "x-mojo-to": "CirculationRules#get_kinds",
5       "operationId": "getCirculationRuleKinds",
6       "tags": ["cities"],
7       "produces": [
8         "application/json"
9       ],
10       "responses": {
11         "200": {
12           "description": "A map of rule kind information",
13           "schema": {
14             "type": "object",
15             "additionalProperties": {
16               "$ref": "../definitions.json#/circ-rule-kind"
17             }
18           }
19         },
20         "403": {
21           "description": "Access forbidden",
22           "schema": {
23             "$ref": "../definitions.json#/error"
24           }
25         },
26         "500": {
27           "description": "Internal error",
28           "schema": {
29             "$ref": "../definitions.json#/error"
30           }
31         }
32       }
33     }
34   }
35 }