rest service to add a peer , and to retrieve peerlist