api portion of final project