In my GCP endpoints v2 project i have created a service that returns Collection of POJOS. I noticed that when returning a List or a CollectionResponse the @ApiMethod(name = ) does not work.
Below an example:
@ApiMethod(name = "getCountryList",
httpMethod = ApiMethod.HttpMethod.GET)
public CollectionResponse<Country> getCountryList() {
List<Country> countryList = null;
Connection con = null;
try{
con = DbUtils.getConnection();
countryList = CountryApi.getAll(con);
return CollectionResponse.<Country> builder().setItems(countryList).build();
//......
I except to have my method exposed with the name getCountryList, whereas it gets exposed with this name "collectionresponse_country"
also here is the openapi.json file which is consistent