[Koha-bugs] [Bug 28948] Add a /public counterpart for the libraries REST endpoints

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Sep 13 11:17:59 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28948

--- Comment #14 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Please, keep in mind that the API already has input/output validation,
specified in the OpenAPI spec. That's why this dev was originally simple and
only included a list of attributes for the 'public' context. Also, this allowed
for easy implementation of calculated lists: frameworks telling what item
structure to hide? Sysprefs?

Also, keep in mind that public and staff are not the only representations we
might want for resources: we could have a 'brief' representation to be used in
dropdowns (id+name). I mention it, because that's where the simplicity came
from.

For what is worth, I think we should do

use base wq(Koha::Object Koha::Object::AllowList)

And have AllowList just read the library's defined lists... I mean not
implementing a new AllowList class for each thing

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list