a902efb83b
This patch adds an endpoint in thi api in /api/v1/clubs/{club_id}/holds whith the verb POST that maps to Koha::REST::V1::Clubs::Holds#add controller. Classes for club_holds and club_holds_to_patron_holds new tables where also added. To test: 1) Reach SUCCESS.3 test point of previous patch with club that has no enrollments 2) Click on "Place Hold" SUCCESS => an alert should appear that you cannot place hold on a club without patrons 3) Reach SUCCESS.3 test point of previous patch with club that has enrollments 4) Click on "Place Hold" SUCCESS => holds priority list should appear with holds for every patron in club 5) Repeat steps 3 and 4. SUCCESS => new holds should appear in different order 6) Sign off Sponsored-by: Southeast Kansas Library - SEKLS Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
73 lines
1.6 KiB
JSON
73 lines
1.6 KiB
JSON
{
|
|
"biblio_id_pp": {
|
|
"$ref": "parameters/biblio.json#/biblio_id_pp"
|
|
},
|
|
"patron_id_pp": {
|
|
"$ref": "parameters/patron.json#/patron_id_pp"
|
|
},
|
|
"patron_id_qp": {
|
|
"$ref": "parameters/patron.json#/patron_id_qp"
|
|
},
|
|
"city_id_pp": {
|
|
"$ref": "parameters/city.json#/city_id_pp"
|
|
},
|
|
"hold_id_pp": {
|
|
"$ref": "parameters/hold.json#/hold_id_pp"
|
|
},
|
|
"club_id_pp": {
|
|
"$ref": "parameters/club.json#/club_id_pp"
|
|
},
|
|
"library_id_pp": {
|
|
"$ref": "parameters/library.json#/library_id_pp"
|
|
},
|
|
"item_id_pp": {
|
|
"$ref": "parameters/item.json#/item_id_pp"
|
|
},
|
|
"vendoridPathParam": {
|
|
"$ref": "parameters/vendor.json#/vendoridPathParam"
|
|
},
|
|
"checkout_id_pp": {
|
|
"$ref": "parameters/checkout.json#/checkout_id_pp"
|
|
},
|
|
"match": {
|
|
"name": "_match",
|
|
"in": "query",
|
|
"required": false,
|
|
"description": "Matching criteria",
|
|
"type": "string",
|
|
"enum": [
|
|
"contains",
|
|
"exact",
|
|
"starts_with",
|
|
"ends_with"
|
|
]
|
|
},
|
|
"order_by": {
|
|
"name": "_order_by",
|
|
"in": "query",
|
|
"required": false,
|
|
"description": "Sorting criteria",
|
|
"type": "array",
|
|
"collectionFormat": "pipes",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"page": {
|
|
"name": "_page",
|
|
"in": "query",
|
|
"required": false,
|
|
"description": "Page number, for paginated object listing",
|
|
"type": "integer"
|
|
},
|
|
"per_page": {
|
|
"name": "_per_page",
|
|
"in": "query",
|
|
"required": false,
|
|
"description": "Page size, for paginated object listing",
|
|
"type": "integer"
|
|
},
|
|
"fundidPathParam": {
|
|
"$ref": "parameters/fund.json#/fundidPathParam"
|
|
}
|
|
}
|