Updated API query methods and corresponding views
Updated routes