Is there a pattern or technique to call another API from a Scenario?
For example, I want to get an oauth token from another API proxy and use it in a scenario.
Here's what I want to do:
Scenario: Verify OAuth token works Given I have a valid token request When I POST to OAUTH-BASEPATH/token And I store the value of body path $.access_token as access token And I set bearer token When I GET /validate Then response code should be 200
The OAUTH-BASEPATH is different than the basepath used in my config for the GET /validate.