James Gan
James Gan

Reputation: 7146

Can Google Cloud Endpoints run in a App Engine Module?

dear all

I'm trying to create a App Engine Module for hosting my api server developed with Google Cloud Endpoints. The endpoint I developed runs well in local dev environment but it responds notFound error after I deployed to remote and test it. I was guessing this might be caused by the fact that endpoints are run in a non-default module. Not sure though. Here is my module definition file (api-server.yaml):

    application: myapp
    module: api-server
    version: dev
    runtime: python27
    instance_class: F2
    api_version: 1
    threadsafe: true
    automatic_scaling:
      max_idle_instances: 5


    handlers:
    - url: /_ah/spi/.*
      script: api_dispatch.application

    libraries:
    - name: endpoints
      version: 1.0

I plan to host endpoints with module cause my api server actually share a lot of code with my default module, which is a normal web app. Please let me know if it's possible. And sample code is very welcome.

Thanks a lot!

Upvotes: 2

Views: 594

Answers (1)

James Gan
James Gan

Reputation: 7146

Yes, it's supported. I don't know why the problem happened before. But it starts working now.

Upvotes: 1

Related Questions