makes the interface between HTTP and the API