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.
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
(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 :)
(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.
(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.
I see there is an x-koha-embed for patron_attributes, probably since the switch of the patron search. Maybe this helps?