add option to configure a complex api url pattern