- Change
host:
in theopenapi.yaml
file:
host: "endpoints.<YOUR-PROJECT-ID>.appspot.com"
- Add this same service name to your
app.yaml
file:
endpoints_api_service:
name: endpoints.<YOUR-PROJECT-ID>.appspot.com
rollout_strategy: managed
-
Change the service account of the
openapi.yaml
file:-
Create service account with a key file, see this documentation.
-
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"
-
- Deploy service:
gcloud endpoints services deploy openapi.yaml
- Deploy application:
gcloud app deploy