for rest apis that need url piping