I want to call an external api which needs bearer token as authorization. I have created controller and service using 'lb4 openapi' command. I couldn't find direct way to send header.
this is interface for external service which needs a param:
export interface MerchantService {
/**
* @param partnerId
* @returns OK
*/
getMerchantDetails(partnerId: string): Promise<MerchantResponse>;
}
i'm calling this from another service like this:
let merchantDetails = await this.merchantService.getMerchantDetails(partner_id)
now i want to pass one bearer authorization token to this api also, how can i pass that.