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

(-)a/api/v1/swagger/definitions/checkout.json (+21 lines)
Lines 83-88 Link Here
83
          "null"
83
          "null"
84
      ],
84
      ],
85
      "description": "The object representing the checkout issuer"
85
      "description": "The object representing the checkout issuer"
86
    },
87
    "item": {
88
      "type": [
89
          "object",
90
          "null"
91
      ],
92
      "description": "The object representing the checked out item"
93
    },
94
    "library": {
95
      "type": [
96
          "object",
97
          "null"
98
      ],
99
      "description": "The object representing the checkout library"
100
    },
101
    "patron": {
102
      "type": [
103
          "object",
104
          "null"
105
      ],
106
      "description": "The object representing the checkout patron"
86
    }
107
    }
87
  },
108
  },
88
  "additionalProperties": false
109
  "additionalProperties": false
(-)a/api/v1/swagger/paths.json (+3 lines)
Lines 23-28 Link Here
23
  "/biblios/{biblio_id}": {
23
  "/biblios/{biblio_id}": {
24
    "$ref": "paths/biblios.json#/~1biblios~1{biblio_id}"
24
    "$ref": "paths/biblios.json#/~1biblios~1{biblio_id}"
25
  },
25
  },
26
  "/biblios/{biblio_id}/checkouts": {
27
    "$ref": "paths/biblios.json#/~1biblios~1{biblio_id}~1checkouts"
28
  },
26
  "/biblios/{biblio_id}/items": {
29
  "/biblios/{biblio_id}/items": {
27
    "$ref": "paths/biblios.json#/~1biblios~1{biblio_id}~1items"
30
    "$ref": "paths/biblios.json#/~1biblios~1{biblio_id}~1items"
28
  },
31
  },
(-)a/api/v1/swagger/paths/biblios.json (+76 lines)
Lines 132-137 Link Here
132
      }
132
      }
133
    }
133
    }
134
  },
134
  },
135
  "/biblios/{biblio_id}/checkouts": {
136
    "get": {
137
      "x-mojo-to": "Biblios#get_checkouts",
138
      "operationId": "listBiblioCheckouts",
139
      "tags": [
140
        "checkouts"
141
      ],
142
      "summary": "List checkouts for a biblio",
143
      "parameters": [
144
        {
145
          "$ref": "../parameters.json#/biblio_id_pp"
146
        },
147
        {
148
          "$ref": "../parameters.json#/page"
149
        },
150
        {
151
          "$ref": "../parameters.json#/per_page"
152
        },
153
        {
154
          "$ref": "../parameters.json#/match"
155
        },
156
        {
157
          "$ref": "../parameters.json#/order_by"
158
        },
159
        {
160
          "$ref": "../parameters.json#/q_param"
161
        },
162
        {
163
          "$ref": "../parameters.json#/q_body"
164
        },
165
        {
166
          "$ref": "../parameters.json#/q_header"
167
        },
168
        {
169
          "name": "checked_in",
170
          "in": "query",
171
          "description": "By default, current checkouts are returned, when this is true then checked in checkouts are returned as result.",
172
          "type": "boolean"
173
        }
174
      ],
175
      "produces": [
176
        "application/json"
177
      ],
178
      "responses": {
179
        "200": {
180
          "description": "A list of checkouts",
181
          "schema": {
182
            "$ref": "../definitions.json#/checkouts"
183
          }
184
        },
185
        "403": {
186
          "description": "Access forbidden",
187
          "schema": {
188
            "$ref": "../definitions.json#/error"
189
          }
190
        },
191
        "404": {
192
          "description": "Biblio not found",
193
          "schema": {
194
            "$ref": "../definitions.json#/error"
195
          }
196
        }
197
      },
198
      "x-koha-authorization": {
199
        "permissions": {
200
          "circulate": "circulate_remaining_permissions"
201
        }
202
      },
203
      "x-koha-embed": [
204
        "issuer",
205
        "item",
206
        "patron",
207
        "library"
208
      ]
209
    }
210
  },
135
  "/biblios/{biblio_id}/items": {
211
  "/biblios/{biblio_id}/items": {
136
    "get": {
212
    "get": {
137
      "x-mojo-to": "Biblios#get_items",
213
      "x-mojo-to": "Biblios#get_items",
(-)a/api/v1/swagger/paths/checkouts.json (-2 / +7 lines)
Lines 15-21 Link Here
15
        "$ref": "../parameters.json#/match"
15
        "$ref": "../parameters.json#/match"
16
      }, {
16
      }, {
17
        "$ref": "../parameters.json#/order_by"
17
        "$ref": "../parameters.json#/order_by"
18
      },{
18
      }, {
19
        "$ref": "../parameters.json#/q_param"
20
      }, {
21
        "$ref": "../parameters.json#/q_body"
22
      }, {
23
        "$ref": "../parameters.json#/q_header"
24
      }, {
19
        "name": "checked_in",
25
        "name": "checked_in",
20
        "in": "query",
26
        "in": "query",
21
        "description": "By default, current checkouts are returned, when this is true then checked in checkouts are returned as result.",
27
        "description": "By default, current checkouts are returned, when this is true then checked in checkouts are returned as result.",
22
- 

Return to bug 29290