add rest location and application