Create register rest api