refined push api but still missing unregister
replaced ? with {} to allow params in endpoints
rest doesnt' use getEndpoint
generic query on collections and basic tests