96456cadc2
CRUD for libraries via REST API. GET /api/v1/libraries - List all libraries GET /api/v1/libraries/{branchcode} - Get one Library POST /api/v1/libraries - Add new Library DELETE /api/v1/libraries/{branchcode} - Delete Library Test plan: - apply patch - run tests: t/db_dependent/api/v1/libraries.t - test API with some API tool or simple curl e.g.: curl http://host:port/api/v1/libraries curl http://host:port/api/v1/libraries/cpl Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
53 lines
1.6 KiB
JSON
53 lines
1.6 KiB
JSON
{
|
|
"/oauth/token": {
|
|
"$ref": "paths/oauth.json#/~1oauth~1token"
|
|
},
|
|
"/acquisitions/vendors": {
|
|
"$ref": "paths/acquisitions_vendors.json#/~1acquisitions~1vendors"
|
|
},
|
|
"/acquisitions/vendors/{vendor_id}": {
|
|
"$ref": "paths/acquisitions_vendors.json#/~1acquisitions~1vendors~1{vendor_id}"
|
|
},
|
|
"/cities": {
|
|
"$ref": "paths/cities.json#/~1cities"
|
|
},
|
|
"/cities/{city_id}": {
|
|
"$ref": "paths/cities.json#/~1cities~1{city_id}"
|
|
},
|
|
"/holds": {
|
|
"$ref": "paths/holds.json#/~1holds"
|
|
},
|
|
"/holds/{reserve_id}": {
|
|
"$ref": "paths/holds.json#/~1holds~1{reserve_id}"
|
|
},
|
|
"/libraries": {
|
|
"$ref": "paths/libraries.json#/~1libraries"
|
|
},
|
|
"/libraries/{branchcode}": {
|
|
"$ref": "paths/libraries.json#/~1libraries~1{branchcode}"
|
|
},
|
|
"/patrons": {
|
|
"$ref": "paths/patrons.json#/~1patrons"
|
|
},
|
|
"/patrons/{patron_id}": {
|
|
"$ref": "paths/patrons.json#/~1patrons~1{patron_id}"
|
|
},
|
|
"/patrons/{patron_id}/account": {
|
|
"$ref": "paths/patrons_account.json#/~1patrons~1{patron_id}~1account"
|
|
},
|
|
"/patrons/{patron_id}/account/credits": {
|
|
"$ref": "paths/patrons_account.json#/~1patrons~1{patron_id}~1account~1credits"
|
|
},
|
|
"/patrons/{patron_id}/password": {
|
|
"$ref": "paths/patrons_password.json#/~1patrons~1{patron_id}~1password"
|
|
},
|
|
"/illrequests": {
|
|
"$ref": "paths/illrequests.json#/~1illrequests"
|
|
},
|
|
"/rotas/{rota_id}/stages/{stage_id}/position": {
|
|
"$ref": "paths/rotas.json#/~1rotas~1{rota_id}~1stages~1{stage_id}~1position"
|
|
},
|
|
"/public/patrons/{patron_id}/password": {
|
|
"$ref": "paths/public_patrons.json#/~1public~1patrons~1{patron_id}~1password"
|
|
}
|
|
}
|