Fixes #7378 - fixed API lookup keys filters

- forced search to be successful when resource id is provided
- added API documentation for missing parameters
Is this necessary? I don't think breaking changes are allowed in the API now unfortunately. This is actually was was breaking the puppetclasses test checking for an error.