{ "/patrons": { "get": { "x-mojo-to": "Patron#list", "operationId": "listPatrons", "tags": ["patrons"], "produces": [ "application/json" ], "responses": { "200": { "description": "A list of patrons", "schema": { "type": "array", "items": { "$ref": "../definitions.json#/patron" } } }, "401": { "description": "Authentication required", "schema": { "$ref": "../definitions.json#/error" } }, "403": { "description": "Access forbidden", "schema": { "$ref": "../definitions.json#/error" } }, "500": { "description": "Internal server error", "schema": { "$ref": "../definitions.json#/error" } }, "503": { "description": "Under maintenance", "schema": { "$ref": "../definitions.json#/error" } } }, "x-koha-authorization": { "permissions": { "borrowers": "1" } } } }, "/patrons/{borrowernumber}": { "get": { "x-mojo-to": "Patron#get", "operationId": "getPatron", "tags": ["patrons"], "parameters": [{ "$ref": "../parameters.json#/borrowernumberPathParam" } ], "produces": [ "application/json" ], "responses": { "200": { "description": "A patron", "schema": { "$ref": "../definitions.json#/patron" } }, "401": { "description": "Authentication required", "schema": { "$ref": "../definitions.json#/error" } }, "403": { "description": "Access forbidden", "schema": { "$ref": "../definitions.json#/error" } }, "404": { "description": "Patron not found", "schema": { "$ref": "../definitions.json#/error" } }, "500": { "description": "Internal server error", "schema": { "$ref": "../definitions.json#/error" } }, "503": { "description": "Under maintenance", "schema": { "$ref": "../definitions.json#/error" } } }, "x-koha-authorization": { "allow-owner": true, "allow-guarantor": true, "permissions": { "borrowers": "1" } } } } }