Ask a Question

Changing prefix for generated files on Client SDK generation

0 Kudos

Changing prefix for generated files on Client SDK generation

[Please redirect to right 'location' if this is not the correct one = thanx in advance]

 

When I download the client SDK for integrating with the API. However all the class names are named with prefix as 'Swag'. If I have to integrate with multiple APIs, I would like the API name to be reflected.

Example CufxClient instead of SwagClient or CufxSwagClient instead of SwagClient. 

2 Comments
HKosova
SmartBear Alumni (Retired)

You can change the class prefixes and other code generation options in the Export > Codegen Options menu. For example, to generate an Apex client SDK with the CufxClient class instead of SwagClient, set the classPrefix to Cufx:

 

apex-codegen-options.png

TanyaYatskovska
SmartBear Alumni (Retired)
Status changed to: Implemented
 
Announcements
Welcome to the SwaggerHub Feature Requests board!

Here you can review already submitted feature requests and vote up the ones you like! If you can't find the feature you want - go ahead and suggest your own idea. Ideas with the highest rating can be implemented in the product.

Check out the Create a Feature Request guide for more information.
New Here?
Welcome to the Community
Sign Up Here