The right way is to create an object apiand usecollection
api_root = endpoints.api(name='myservice', version='v1', description='MyService API')
@api_root.collection(resource_name='first')
class FirstService(remote.Service):
...
@api_root.collection(resource_name='second')
class SecondService(remote.Service):
...
where the resource name will be inserted before the method names so you can use
@endpoints.method(name='method', ...)
def MyMethod(self, request):
...
instead
@endpoints.method(name='first.method', ...)
def MyMethod(self, request):
...
Put this on the API server:
api_root remote.Service, endpoints.api, endpoints.api_server. :
application = endpoints.api_server([api_root, ...])