adding proxy registration REST code