Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

API names with Swagger

mrios
New Member

Hi,

We are using Swagger 2.0 through springfox framework. This framework generate a Swagger - JSON file for each project that we have. The problem that we are facing is that the Developer Portal seems to generate the method name using the operationId of the swagger-json file and this framework generate method names with the convention [java_method_name]+Using+[HTTP verb].

As a result our API methods name looks weird, for example: userByIdUsingGET or getVMsUsingGET.

Is there a way that the Developer Portal use the partial url as the swagger-ui use instead of the method name generated by the operationId?

This is how the swagger-ui looks like

1580-screen-shot-2015-12-01-at-14429-pm.png

And this is what we get with the same swagger-json file in the Dev Portal

1581-screen-shot-2015-12-01-at-14454-pm.png

Thanks,

Matias

4 11 2,942
11 REPLIES 11