Features/queryable api

Add querying to API controller's index action