configurar rest api and logger