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).
But I can't make it work (at least with the dev server, I've not tried to pushed it to the cloud). I have two modules: module1 and module2, each of them running an independent api (using google endpoints so). In each moduleX/main.py I have this code:
import endpoints
from protorpc import remote
# ... some code
@endpoints.api(name="moduleX", version='v0') # X being 1 or 2 obviously
class ModuleX(remote.Service):
# ... definition of the different methods
api = endpoints.api_server([ModuleX])
When I run dev_appserver.py with the two corresponding module yaml files, they start well (module1 on localhost:8080, module2 on localhost:8081).
Here comes the problem:
localhost:8080/_ah/api/explore works well and I can see my module1 API with the different methods
localhost:8081/_ah/api/explore takes looooong time then find the exact same API than for module1 except than when I click on it, it can't find the methods.
I've played a bit with Postman to see what's going on under the wood and found out that both calls to localhost:8080/_ah/api/discovery/v1/apis and localhost:8081/_ah... return the same information with the discoveryRestUrl
being localhost:8080/_ah/api/discovery/v1/apis/module1/v0/rest. Which is funny you'll admit.
Am I doing something wrong ? Is it only the dev server that doesn't handle endpoints with multiple services ?
Thanks for your help