This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Versioning Web Applications
WSO2 App Manager facilitates creating multiple versions of an application with and without the app version mentioned in the URL. Once an app is published as the default version, that particular app version can be accessed without specifying the version in the URL.
For example, let's create an app with the following information:
Provider | Lahiru |
App Name | myapp1 |
App Context | myapp1 |
Version | 1.0 |
Default Version | true |
Two synapse configuration XML files are created in the
wso2appm-home/repository/deployment/server/synapse-configs/default/api
directory as versioned and non versioned APIs. In this example, lahriu--myapp1.xml
and lahriu--myapp1_1.0.xml
. The non versioned configuration retains the default version details so that if a request is received without a version, it is redirected to the versioned app.Note the following:
- The non versioned configuration is only created if the published app is the default version (along with the versioned config).
- If a non default app version is published, only the versioned configuration is created.
- If the default app version is unpublished/deleted, the non versioned configuration is deleted along with the versioned configuration.
- If a non default app version is unpublished/deleted, the non versioned configuration remains as it is while the versioned configuration is removed.
App Publisher:Â Mark an app version as the default
You can mark an app version as the default in any of the following ways:
By creating a new app from scratch
- Start the WSO2 App Manager and log in to the App Publisher.
- Click Web Applications > Create New Web Application.
- Enter the required information.
- Make sure you select the Make As Default Version check box.Â
- Save your changes.
By creating a new version of an existing app
When the new app is published, all subscriptions to the original app version are copied over to the newly published version.
- Start the WSO2 App Manager and log in to the App Publisher.
- Open the app for which you want to make a new version.
- Click Create New Version.
- Enter the required information.
- Make sure you select the Make As Default Version check box.Â
- Save your changes.
By editing an existing app
- Start the WSO2 App Manager and log in to the App Publisher.
- Click the app for which you want to make a new version.
- Click Edit and select the Make As Default Version check box.
- Save your changes.
App Store: Display multiple versions of an app
- Display all published versionsÂ
- Display only the default version
Open the app-manager.xml
file located in the <APPM_HOME>/repository/conf
directory. If you want to display all published versions of an app, set the DisplayMultipleVersions
property to true. If you want to display only the default version of an app, leave the DisplayMultipleVersions
property as false.