Skip to content

Latest commit

 

History

History

openapi-app-engine-flexible

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Before starting

  1. Change host: in the openapi.yaml file:
host: "endpoints.<YOUR-PROJECT-ID>.appspot.com"
  1. Add this same service name to your app.yaml file:
endpoints_api_service:
  name: endpoints.<YOUR-PROJECT-ID>.appspot.com
  rollout_strategy: managed
  1. Change the service account of the openapi.yaml file:

    1. Create service account with a key file, see this documentation.

    2. Add the service account to the openapi.yaml file, in the following sections:

    securityDefinitions:
      service_account:
        authorizationUrl: ""
        flow: "implicit"
        type: "oauth2"
        x-google-issuer: "<ACCOUNT-NAME>@<YOUR-PROJECT-ID>.iam.gserviceaccount.com"
        x-google-jwks_uri: "https://www.googleapis.com/robot/v1/metadata/x509/<ACCOUNT-NAME>@<YOUR-PROJECT-ID>.iam.gserviceaccount.com"
    

Deploying

  1. Deploy service:
gcloud endpoints services deploy openapi.yaml
  1. Deploy application:
gcloud app deploy