import {HTTPRequest} from '@serenity-js/rest/lib/model'
public class | source

Constructor Summary

Protected Constructor
protected

constructor(resourceUri: Answerable<string>, data: Answerable<any>, config: Answerable<AxiosRequestConfig>)

Member Summary

Public Members
public

subject: string

Method Summary

Public Methods
public

answeredBy(actor: AnswersQuestions & UsesAbilities): Promise<AxiosRequestConfig>

Resolves the Question in the context of a given Actor

Protected Constructors

protected constructor(resourceUri: Answerable<string>, data: Answerable<any>, config: Answerable<AxiosRequestConfig>) source

Params:

NameTypeAttributeDescription
resourceUri Answerable<string>
  • optional

URL to which the request should be sent

data Answerable<any>
  • optional

Request body to be sent as part of the Put, Post or Patch request

config Answerable<AxiosRequestConfig>
  • optional

Axios request configuration, which can be used to override the defaults provided when the CallAnApi Ability is instantiated

Public Members

public subject: string source

Public Methods

public answeredBy(actor: AnswersQuestions & UsesAbilities): Promise<AxiosRequestConfig> source

Resolves the Question in the context of a given Actor

Params:

NameTypeAttributeDescription
actor AnswersQuestions & UsesAbilities

Returns:

Promise<AxiosRequestConfig>