use api url for rest requests