Skip to content Skip to sidebar Skip to footer

Unable To Get Google Endpoints Working Over Multiple Services

Thanks to asamarin I've been able to figure out how to get different endpoints within the same google app engine (cf Using Google endpoints in different modules of the same app). B

Solution 1:

I believe this issue only exists with dev_appserver, as I had the same problem as you locally but it worked fine once deployed.

My app.yaml for my endpoint service looks like this:

runtime:python27threadsafe:trueapi_version:1service:<module-name>handlers:-url:/_ah/spi/.*script:my_script.apilibraries:-name:pycryptoversion:2.6-name:endpointsversion:1.0

Once deployed, in order to hit my api I send requests to https://<module-name>-dot-<project-name>.appspot.com/_ah/api

So for the code you gave, the endpoint you would need to hit would be https://<module-name>-dot-<project-name>.appspot.com/_ah/api/<moduleX>/v0/<method> Note that <module-name> is defined in app.yaml and <moduleX> and <method> would be declared in the python code in my_script.api.

In order to get this working locally on dev_appserver, I believe you need to run each endpoint module in its own instance of dev_appserver, as is noted here. Admittedly I have not gotten this to work fully locally, as when I try to do this I get errors about my datastore being locked, but I believe fixing that issue should be possible as noted here.

Post a Comment for "Unable To Get Google Endpoints Working Over Multiple Services"