Page History
...
Start the API Manager 1.8.0 and log in to its management console.
Copy the
'swagger-doc-migration
' directory from the migration scripts location to<APIM_1.8.0_HOME>
. The new directory path will now be<APIM_1.8.0_HOME>/swagger-doc-migration
.Configure the
<APIM_1.8.0_HOME>/swagger-doc-migration/build.xml
file with the following properties:Property Description registry.home Path to the APIM distribution. In a distributed setup, give the API Publisher node's path. username Username for the server. For a tenant to log in, provide the tenant admin username. password Password for the server. For a tenant to log in, provide the tenant admin password. host IP of the running APIM server. In a distributed setup, give the host of the API Publisher node. port Port of the running APIM server. In a distributed setup, give the port of the APIM Publisher node. version Version of the server. Using the command line, go to
<APIM_1.8.0_HOME>/swagger-doc-migration
folder and executeant run.
If the above configuration is successful, you get aBUILD SUCCESSFUL
message. It modifies the structure of Swagger content in the registry.To re-index the artifacts in the registry, perform the two steps given below.
a) Rename the lastAccessTimeLocation in the
<APIM_1.8.0_HOME>
/repository/conf/registry.xml
file.EgE.g.,: Change /_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime to /_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime_1
b) Shutdown AM 1.8.0 and backup and delete the
Upgrading tenants<APIM_1.8.0_HOME>
/solr
directory and restart the server.- If you have multiple tenants added to your API Manager instance, follow the steps below to migrate tenant configurations:Copy the contents from your previous
<APIM_HOME>/repository/tenants
directory to the same directory in the API Manager 1.8.0. Do not replace the_TokenAPI_.xml
,_RevokeAPI_.xml
and_AuthorizeAPI_.xml
files in the/default/api
sub directory. - To upgrade the API and documentation RXT files,
Run the command
sudo apt-get install xmlstarlet
to install thexmlstarlet
library. This is used forxml
manipulation.- Copy migrate.sh to the
<APIM_1.8.0_HOME>/dbscripts/migration-1.7.0_to_1.8.0/rxt
directory. - Set the MySQL host, username, password and governance DB name in the migrate.sh script.
Execute the script.
Note Note that the script uses linux commands.
- Download Download and build org.wso2.carbon.apimgt.migration and build .zip as a JAR file.
- Place the JAR file in the
<APIM_1.8.0_HOME>/repository/components/dropins
folder. - Start the server with the
-Dmigrate=1.7
command to run the 1.7.0 to 1.8.0 swagger and doc resource migrations.Upgrading external stores
If you have external stores configured in the registry, follow the steps below:
Log in to APIM 1.8.0 management console and click the Resources -> Browse menu.
Load the
/_system/governance/apimgt/externalstores/external-api-stores.xml
resource in the registry browser UI, configure your external stores and save.
Upgrading Google analytics
If you have Google Analytics configured in the registry, follow the steps below:
Log in to APIM 1.8.0 management console and go to Resources -> Browse menu.
Load the
/_system/governance/apimgt/statistics/ga-config.xml
resource in the registry browser UI, configure the Google analytics and save.
Upgrading workflows
If you have Workflows configured in the registry, follow the steps below:
Log in to APIM 1.8.0 management console and go to Resources -> Browse menu.
Load the
/_system/governance/apimgt/applicationdata/workflow-extensions.xml
resource in the registry browser UI, configure your workflows and save.