I understand that when documenting an API with Swagger in Spring, I can change the description for the API by adding @Api
annotation, but when I add it as follows
@Api(value= "NEW_NAME", description="NEW_DESCRIPTION")
Only the description is changed, not the name.
as seen here
Further, I'm not sure where the default name and description are coming from, before adding the API, the name seems to be derived from the controller name, but the description; which to me looks natural and human like almost like hard coded String with capitalization and all. I ran a search on the code, and I wasn't able to find those Strings. Where's Swagger getting those values from?
thanks