(Also on Stackoverflow)
Hello
I tried to follow the steps to migrate to v2 (appengine app) and faced what seems to be a bug.
I have multiple APIs under the same AppEngine service (pretty much like here), and changed my app.yaml, downloaded the cloud-endpoints library, put it in the /lib folder...
Then I pushed the code to AppEngine, using gcloud app deploy only (at this time I did not know about gcloud service-management, we were not using this before).
When trying to call one of my endpoints then, I got this error 'ApiConfigurationError: POST path "synchro" used multiple times, in classes SQL and Synchro'
That's true, but those two methods are under differents APIs so it should work (it does, in v1).
My code
@endpoints.api(name="sql", version='v1.0')
class SQL(remote.Service):
@endpoints.method(
CREATE_SYNCHRO,
message_types.VoidMessage,
path='synchro',
http_method='POST',
name='synchros.start'
)
@endpoints.api(name='synchro', version='v1.0')
class Synchro(remote.Service):
@endpoints.method(
DayUserList,
UserList,
path='synchro',
http_method='POST',
name='synchronisation'
)
(So migrating from v1 to v2 does not seem to be as simple as Google says... :) )
(Also on Stackoverflow)
Hello
I tried to follow the steps to migrate to v2 (appengine app) and faced what seems to be a bug.
I have multiple APIs under the same AppEngine service (pretty much like here), and changed my
app.yaml, downloaded thecloud-endpointslibrary, put it in the/libfolder...Then I pushed the code to AppEngine, using
gcloud app deployonly (at this time I did not know aboutgcloud service-management, we were not using this before).When trying to call one of my endpoints then, I got this error 'ApiConfigurationError: POST path "synchro" used multiple times, in classes SQL and Synchro'
That's true, but those two methods are under differents APIs so it should work (it does, in v1).
My code
(So migrating from v1 to v2 does not seem to be as simple as Google says... :) )