]> git.koha-community.org Git - koha.git/commit
Bug 30979: Add public endpoints
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 5 May 2023 14:56:27 +0000 (15:56 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 14 Jul 2023 15:14:39 +0000 (12:14 -0300)
commit959794e1cbd88e34c93478d534c13c306738e3ef
tree6bb493439298e2ffc8859d4f3c02db8d7e5a2594
parentb72c623c30808cf1ce4a0225d89fd3f9db23bedc
Bug 30979: Add public endpoints

This patch expands the checkouts endpoints to allow for a public workflow.

We add the availability endpoint under `/public/checkouts/availability`
and restrict the information we send back to only those fields a public
user should be allowed to see.

We also add a new checkout endpoint at `/patrons/{patron_id}/checkouts`
that allows for users to checkout to themselves and accepts the same POST
request with checkout details including item_id and a confirmation token
in the body that the staff client endpoints accept.

Signed-off-by: Silvia Meakins <smeakins@eso.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/REST/V1/Checkouts.pm
api/v1/swagger/paths/checkouts.yaml
api/v1/swagger/paths/public_patrons.yaml
api/v1/swagger/swagger.yaml