externalChangeApiConfig
Index
Constructors
Methods
Constructors
externalconstructor
Returns ChangeApiConfig
Methods
staticexternalsetUrlTo
Parameters
externalnewApiUrl: Answerable<string>
Returns Interaction
staticexternalsetPortTo
Parameters
externalnewApiPort: Answerable<number>
Returns Interaction
staticexternalsetHeader
Instructs the actor to change the configuration of the
AxiosInstance
used by their ability toCallAnApi
and set an HTTP request header for any subsequent HTTP requests issued viaSend
.Parameters
externalname: Answerable<string>
externalvalue: Answerable<string>
Returns Interaction
Changes configuration of the ability to
CallAnApi
that the actor executing this interaction has been configured with.Changing API URL for all subsequent requests
Changing API port for all subsequent requests
Setting a header for all subsequent requests
Handling sensitive information
By design, any data handled by an actor appears in Serenity/JS reports. To prevent the exposure of any sensitive information, such as passwords or tokens, you should use
Masked
.