updated http rest api