integrate rest api in frontend
merged'