senaite / senaite.jsonapi

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

Fix missing portal type in query #58

Closed ramonski closed 1 year ago

ramonski commented 1 year ago

Description of the issue/feature this PR addresses

This PR always adds the portal_type to the catalog query if set, e.g. for resource routes.

Current behavior before PR

Mixed results are returned e.g. for the Analysis Service route:

http://localhost:8080/senaite/@@API/senaite/v1/analysisservice

Desired behavior after PR is merged

Resource URLs return only requested portal type

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