What I'm trying to do is to avoid hardcoding the parameters and avoid using a java configuration file (with constants).
The sample provided by google uses in fact constants and all their repositories the same, this way:
@Api(
version = "v1",
description = "Sample API",
scopes = {"ss0", "ss1"},
audiences = {"aa0", "aa1"},
clientIds = {"cc0", "cc1"},
defaultVersion = AnnotationBoolean.TRUE
)
However my problem is that the code is part of an open source project and I'd rather not put sensitive data in it :) nor having to leave it blank.
Usually the solution is always to use a configuration file (*.properties), is this possible with google cloud endpoints? is there a way to do it or a clean alternative?