openapi2apigee proxy basepath issue

Not applicable

openapi2apigee generateApi Bill -s BillingUsageApiSwagger.yaml -D -d .

I am using the above command to generate an APIProxy Bill.

I have

 basepath: /v1/accounts and 
/paths : /usage

the generated proxy has

<BasePath>/Bill</BasePath>

and

<HTTPTargetConnection>
    <URL>https://FQDN/v1/accounts</URL>
  </HTTPTargetConnection>

Any ideas on how to fix that?

0 1 59
1 REPLY 1

@Maruti Chand , It's hardcoded at this point of time to API name. You can see the codebase here (line no 185).

You can submit a pull request to change it to spec basepath using api variable in the function.