Allowing support for passing id via params or query