As part of my requirement, i need to create and API to call external system through API gateway using the swagger they provided. But this External system expecting OAuth token to pass in header. to get this OAuth token we need to call another Swagger that provided by same external system.
can someone please explain how we can achieve this requirement in API Gateway. tried to use Mashup but not works out it looking.
Here i created two different API’s.
First API returns OAuth token when we pass username/password provided by Provider.
Second API have two resources which will call provider and returns result. for this proxy we need to pass API token that i got in first API in header.
so i tried to call OAuth generating proxy API in second API mashup. and OAuth-token that we get in result i am trying to pass in Provider proxy header.
as we don’t have proper trace here like APIGEE , i am unable to see full flow to check.
please provide valid steps that we can follow if my approach is wrong.
Not sure how perfect the procedure i followed. this is my first Mashup implementation.
In oAuth API, i using my local rest descriptor that generates static response(untitled) as API token.