Stay organized with collections Save and categorize content based on your preferences.
This page describes how to do versioning for your API and how to deploy to multiple versions.
Recommendations for managing API versionsIn managing your API versions, consider these recommendations:
The following table is an illustration of cascading backend API versions to different App Engine application versions.
Application version Backend API version 1As shown in the table, incremental, non-breaking updates to v1 of the API are rolled out, each overwriting the previous version. When breaking changes are introduced, the API version is incremented to v2 and it is deployed to a new App Engine application version. That allows you to switch back to the previous applications version if needed.
In the table, notice that application version 2 supports both the latest v1 version and the new v2 version of your API. If you don't delete the existing v1 code from your project, when you deploy the project both v2
and vl
(n) of your API are deployed to version 2 of your application.
When you deploy your backend API, you deploy it to the project ID of the Google Cloud project you created for your API, and you must also specify the App Engine version you deploy to. You specify the App Engine app version in the <version>
element of the /WEB-INF/appengine-web.xml
file. The App Engine app version isn't the same thing as the backend API version number, which you specify in the version
attribute of the @Api
annotation.
As shown in the preceding figure, you can deploy multiple API versions to the same App Engine version. And, you can have many App Engine versions for an application.
Accessing API versions deployed to a serving versionThe first App Engine version that you deploy your API to is the serving version. This version runs at the URL http://YOUR_PROJECT_ID.appspot.com
where YOUR_PROJECT_ID
represents your Google Cloud project ID. You can access all of the API versions deployed to that App Engine application version by using that URL.
The serving version remains the same until you explicitly change it, in the Google Cloud console.
Accessing API versions deployed to a non-serving application versionIf you need to access API versions that are not deployed to the currently serving App Engine version, you use a version-specific URL, similar to the following:
https://VERSION-dot-YOUR_PROJECT_ID.appspot.com
Replace VERSION
with your App Engine version, and YOUR_PROJECT_ID
with your Google Cloud project ID. For example, suppose your App Engine serving version is 1, but you want to access an API version deployed to version 2. You would use this URL: https://2-dot-YOUR_PROJECT_ID.appspot.com
.
-dot-
in place of literal periods work for versioned apps.
For more details, see the App Engine documentation.
Accessing API versions deployed to non-serving services (previously modules)If you need to access API versions that are not deployed to the default App Engine service, you can use a service-specific URL using the dot syntax as follows:
https://SERVICE-NAME-dot-YOUR_PROJECT_ID.appspot.com/_ah/api/...
For more details, see the App Engine documentation.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["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-08-07 UTC."],[[["When introducing non-breaking changes to an API, keep the API version the same and deploy over the existing API."],["When a breaking change is made to an API, increment the API version and, for extra precaution, increment the App Engine application version as well."],["Multiple API versions can be deployed to the same App Engine version, and multiple App Engine versions can exist for an application."],["The serving version of an API is accessed via `http://YOUR_PROJECT_ID.appspot.com`, while non-serving API versions use a version-specific URL like `https://VERSION-dot-YOUR_PROJECT_ID.appspot.com`."],["Non-default service deployments can be accessed using the following URL format `https://SERVICE-NAME-dot-YOUR_PROJECT_ID.appspot.com/_ah/api/...`."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4