[Bug 28473] New: Add REST endpoint for searching extended patron attributes
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28473 Bug ID: 28473 Summary: Add REST endpoint for searching extended patron attributes Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: REST API Assignee: koha-bugs@lists.koha-community.org Reporter: joonas.kylmala@helsinki.fi CC: tomascohen@gmail.com We would like to be able to search all our extended patron attributes in the database. The following endpoint would probably need to be added for this: GET /extended_attributes It should have an option to search with the attribute type and value. This is API endpoint would be useful for example gathering a list of patrons with a specific extended attribute which has a statistics group for example, or for searching patrons that are blocked via a special attribute, and so on. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28473 --- Comment #1 from Tomás Cohen Arazi <tomascohen@gmail.com> --- It is a good idea. Remember there's the possibility to search patrons with x-koha-embed: extended_attributes, and then filter by extended_attributes.type using the q= parameter -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28473 --- Comment #2 from Joonas Kylmälä <joonas.kylmala@helsinki.fi> --- (In reply to Tomás Cohen Arazi from comment #1)
It is a good idea.
Remember there's the possibility to search patrons with x-koha-embed: extended_attributes, and then filter by extended_attributes.type using the q= parameter
That's sounds promising, thanks for the tip! I forwarded the infos to the libraries wanting to use this sort of API functionality :) -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28473 --- Comment #3 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Joonas Kylmälä from comment #2)
(In reply to Tomás Cohen Arazi from comment #1)
It is a good idea.
Remember there's the possibility to search patrons with x-koha-embed: extended_attributes, and then filter by extended_attributes.type using the q= parameter
That's sounds promising, thanks for the tip! I forwarded the infos to the libraries wanting to use this sort of API functionality :)
I'm sorry, it seems we forgot to add something to the spec for that to work. My fault! See bug 28480. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28473 Lisette Scheer <lisetteslatah@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lisetteslatah@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28473 Jonathan Druart <jonathan.druart+koha@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart+koha@gmail. | |com --- Comment #4 from Jonathan Druart <jonathan.druart+koha@gmail.com> --- (In reply to Tomás Cohen Arazi from comment #1)
It is a good idea.
Remember there's the possibility to search patrons with x-koha-embed: extended_attributes, and then filter by extended_attributes.type using the q= parameter
It's not working, you will need bug 30074. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28473 --- Comment #5 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I see there is an x-koha-embed for patron_attributes, probably since the switch of the patron search. Maybe this helps? -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org