restful client for internal rest api