The bare minimum contents required for this file are as follows:
# Copyright 2021 Google LLC## Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.runtime:python27threadsafe:trueapi_version:1basic_scaling:max_instances:2skip_files:-^(.*/)?#.*#$-^(.*/)?.*~$-^(.*/)?.*\.py[co]$-^(.*/)?.*/RCS/.*$-^(.*/)?\..*$-^(.*/)?setuptools/script \(dev\).tmpl$handlers:# The endpoints handler must be mapped to /_ah/api.-url:/_ah/api/.*script:main.apilibraries:-name:pycryptoversion:2.6-name:sslversion:2.7.11env_variables:# The following values are to be replaced by information from the output of# 'gcloud endpoints services deploy swagger.json' command.ENDPOINTS_SERVICE_NAME:YOUR-PROJECT-ID.appspot.comENDPOINTS_SERVICE_VERSION:2016-08-01r0
where:
main is the name of the Python module and variable for your API server.
threadsafe is set to true if you want App Engine to send multiple requests
in parallel, or set to false, if you want App Engine to send requests serially.
Additional but optional settings are available. See the
app.yaml reference
for more information. However, note that the information under Requiring login or administrator status and
Secure URLsdo not apply to backend APIs.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-11 UTC."],[[["Your project needs at least three files: a class file for your backend API (`/src/\u003cyour_api_class\u003e.py`), an optional API server file (`/src/\u003cyour_api_server\u003e.py`), and the `app.yaml` deployment descriptor."],["The `app.yaml` file is essential for App Engine configuration and includes settings for runtime, API version, scaling, and handling requests, which can be set to threadsafe."],["The `/src/app.yaml` file must contain a handler that maps the `/_ah/api/.*` URL pattern to your API, and this pattern should match the base path set in your API definition."],["The `app.yaml` also contains variables such as `ENDPOINTS_SERVICE_NAME` and `ENDPOINTS_SERVICE_VERSION`, which need to be updated with information obtained from the gcloud command output."]]],[]]