Added all end points and test code