Versions in this module Expand all Collapse all v1 v1.7.1 Jun 13, 2022 v1.7.0 Jun 9, 2022 Changes in this version + type ApiContext struct + func New(baseURL string) *ApiContext + func (ctx *ApiContext) ISendRequestTo(method, uri string) error + func (ctx *ApiContext) ISendRequestToWithBody(method, uri string, requestBody *godog.DocString) error + func (ctx *ApiContext) ISendRequestToWithFormBody(method, uri string, requestBodyTable *godog.Table) error + func (ctx *ApiContext) ISetHeaderWithValue(name string, value string) error + func (ctx *ApiContext) ISetHeadersTo(dt *godog.Table) error + func (ctx *ApiContext) ISetQueryParamWithValue(name string, value string) error + func (ctx *ApiContext) ISetQueryParamsTo(dt *godog.Table) error + func (ctx *ApiContext) InitializeScenario(s *godog.ScenarioContext) + func (ctx *ApiContext) ReplaceScopeVariables(data string) string + func (ctx *ApiContext) StoreJsonPathValue(pathExpr string, scopeKeyName string) error + func (ctx *ApiContext) StoreResponseHeader(name string, scopeKeyName string) error + func (ctx *ApiContext) StoreScopeData(scopeKeyName string, value string) error + func (ctx *ApiContext) TheJSONPathHaveCount(pathExpr string, expectedCount int) error + func (ctx *ApiContext) TheJSONPathShouldBePresent(pathExpr string) error + func (ctx *ApiContext) TheJSONPathShouldHaveValue(pathExpr string, expectedValue string) error + func (ctx *ApiContext) TheJSONPathShouldMatch(pathExpr string, pattern string) error + func (ctx *ApiContext) TheResponseBodyShouldContain(s string) error + func (ctx *ApiContext) TheResponseBodyShouldMatch(pattern string) error + func (ctx *ApiContext) TheResponseCodeShouldBe(statusCode int) error + func (ctx *ApiContext) TheResponseHeaderShouldHaveValue(name string, expectedValue string) error + func (ctx *ApiContext) TheResponseShouldBeAValidJSON() error + func (ctx *ApiContext) TheResponseShouldMatchJSON(body *godog.DocString) error + func (ctx *ApiContext) TheResponseShouldMatchJsonSchema(path string) error + func (ctx *ApiContext) TheScopeVariableShouldHaveValue(scopeKeyName string, expectedValue string) error + func (ctx *ApiContext) WaitForSomeTime(timeToWait int) error + func (ctx *ApiContext) WithBaseURL(url string) *ApiContext + func (ctx *ApiContext) WithDebug(debug bool) *ApiContext + func (ctx *ApiContext) WithJSONSchemasPath(path string) *ApiContext + type ApiResponse struct + Body string + ResponseObj *http.Response + StatusCode int