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

(-)a/api/v1/swagger/paths.json (-3 / +6 lines)
Lines 44-49 Link Here
44
  "/holds/{hold_id}/suspension": {
44
  "/holds/{hold_id}/suspension": {
45
    "$ref": "paths/holds.json#/~1holds~1{hold_id}~1suspension"
45
    "$ref": "paths/holds.json#/~1holds~1{hold_id}~1suspension"
46
  },
46
  },
47
  "/items": {
48
    "$ref": "paths/items.json#/~1items"
49
  },
50
  "/items/{item_id}": {
51
    "$ref": "paths/items.json#/~1items~1{item_id}"
52
  },
47
  "/libraries": {
53
  "/libraries": {
48
    "$ref": "paths/libraries.json#/~1libraries"
54
    "$ref": "paths/libraries.json#/~1libraries"
49
  },
55
  },
Lines 53-61 Link Here
53
  "/checkouts/{checkout_id}/allows_renewal": {
59
  "/checkouts/{checkout_id}/allows_renewal": {
54
    "$ref": "paths/checkouts.json#/~1checkouts~1{checkout_id}~1allows_renewal"
60
    "$ref": "paths/checkouts.json#/~1checkouts~1{checkout_id}~1allows_renewal"
55
  },
61
  },
56
  "/items/{item_id}": {
57
    "$ref": "paths/items.json#/~1items~1{item_id}"
58
  },
59
  "/patrons": {
62
  "/patrons": {
60
    "$ref": "paths/patrons.json#/~1patrons"
63
    "$ref": "paths/patrons.json#/~1patrons"
61
  },
64
  },
(-)a/api/v1/swagger/paths/items.json (-1 / +76 lines)
Lines 1-4 Link Here
1
{
1
{
2
  "/items": {
3
    "get": {
4
      "x-mojo-to": "Items#list",
5
      "operationId": "listItems",
6
      "tags": [
7
        "items"
8
      ],
9
      "parameters": [
10
        {
11
          "name": "external_id",
12
          "in": "query",
13
          "description": "Search on the item's barcode",
14
          "required": false,
15
          "type": "string"
16
        },
17
        {
18
          "$ref": "../parameters.json#/match"
19
        },
20
        {
21
          "$ref": "../parameters.json#/order_by"
22
        },
23
        {
24
          "$ref": "../parameters.json#/page"
25
        },
26
        {
27
          "$ref": "../parameters.json#/per_page"
28
        }
29
      ],
30
      "consumes": [
31
        "application/json"
32
      ],
33
      "produces": [
34
        "application/json"
35
      ],
36
      "responses": {
37
        "200": {
38
          "description": "A list of item",
39
          "schema": {
40
            "type": "array",
41
            "items": {
42
              "$ref": "../definitions.json#/item"
43
            }
44
          }
45
        },
46
        "401": {
47
          "description": "Authentication required",
48
          "schema": {
49
            "$ref": "../definitions.json#/error"
50
          }
51
        },
52
        "403": {
53
          "description": "Access forbidden",
54
          "schema": {
55
            "$ref": "../definitions.json#/error"
56
          }
57
        },
58
        "500": {
59
          "description": "Internal server error",
60
          "schema": {
61
            "$ref": "../definitions.json#/error"
62
          }
63
        },
64
        "503": {
65
          "description": "Under maintenance",
66
          "schema": {
67
            "$ref": "../definitions.json#/error"
68
          }
69
        }
70
      },
71
      "x-koha-authorization": {
72
        "permissions": {
73
          "catalogue": "1"
74
        }
75
      }
76
    }
77
  },
2
  "/items/{item_id}": {
78
  "/items/{item_id}": {
3
    "get": {
79
    "get": {
4
      "x-mojo-to": "Items#get",
80
      "x-mojo-to": "Items#get",
5
- 

Return to bug 23667