rest api and admin