Allow api to be a path to an api.