func (suite *ApiTestSuite) request(endpoint api.Endpoint, body io.Reader) *http.Request { req, _ := http.NewRequest(endpoint.Verb, endpointFmt(suite.server.URL, endpoint.String()), body) req.Header.Set("Accept", "application/json") if body != nil { req.Header.Set("Content-Type", "application/json") } return req }