Writing testable HTTP APIs - the basics