Class CallAnApi
java.lang.Object
net.serenitybdd.screenplay.rest.abilities.CallAnApi
- All Implemented Interfaces:
net.serenitybdd.screenplay.Ability
A Screenplay ability that allows an actor to perform REST queries against a specified API.
For example:
```
Actor sam = Actor.named("Sam the supervisor").whoCan(CallAnApi.at("https://reqres.in"));
```
-
Method Summary
Modifier and TypeMethodDescriptionstatic CallAnApias(net.serenitybdd.screenplay.Actor actor) Used to access the Actor's ability to CallAnApi from within the Interaction classes, such as GET or PUTstatic CallAnApiAbility to Call and api at a specified baseUrlio.restassured.response.ResponsetoString()