allow api definition to be a path