senaite / senaite.jsonapi

RESTful JSON API for SENAITE
https://www.senaite.com
GNU General Public License v2.0
11 stars 19 forks source link

Make senaite.jsonapi catalog-agnostic on searches #34

Closed xispa closed 4 years ago

xispa commented 4 years ago

Description of the issue/feature this PR addresses

senaite.jsonapi only supports a subset of catalogs from SENAITE. With this Pull Request, senaite.jsonapi becomes catalog-agnostic by delegating the resolution of the proper catalog on searches to core's api.

Current behavior before PR

Cannot search against some catalogs.

Desired behavior after PR is merged

Can search for any catalog, even if is a new catalog not specifically added by senaite.core, but by other add-ons.

-- I confirm I have tested the PR thoroughly and coded it according to PEP8 standards.