Fixes #7378 - fixed API lookup keys filters

- forced search to be successful when resource id is provided
- added API documentation for missing parameters
Why not ```not_found (_("Puppet class... ``` ? The API  just returns 404 and ```:message``` for not found.