Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How can I call APIs with different basepaths in an Apickli test?

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.

2 3 1,347
3 REPLIES 3