Bug 16825: Add API route for getting an item
[koha.git] / api / v1 / swagger / paths / items.json
1 {
2   "/items/{item_id}": {
3     "get": {
4       "x-mojo-to": "Items#get",
5       "operationId": "getItem",
6       "tags": ["items"],
7       "parameters": [{
8           "$ref": "../parameters.json#/item_id_pp"
9         }
10       ],
11       "consumes": ["application/json"],
12       "produces": ["application/json"],
13       "responses": {
14         "200": {
15           "description": "An item",
16           "schema": {
17             "$ref": "../definitions.json#/item"
18           }
19         },
20         "400": {
21           "description": "Missing or wrong parameters",
22           "schema": {
23             "$ref": "../definitions.json#/error"
24           }
25         },
26         "404": {
27           "description": "Item not found",
28           "schema": {
29             "$ref": "../definitions.json#/error"
30           }
31         },
32         "500": {
33           "description": "Internal server error",
34           "schema": {
35             "$ref": "../definitions.json#/error"
36           }
37         },
38         "503": {
39           "description": "Under maintenance",
40           "schema": {
41             "$ref": "../definitions.json#/error"
42           }
43         }
44       },
45       "x-koha-authorization": {
46         "permissions": {
47           "catalogue": "1"
48         }
49       }
50     }
51   }
52 }