Add API as argument to get_rspec