Skip to content

gallolp/SwaggerHub-Migration-Utility

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 

Repository files navigation

SwaggerHub-Migration-Utility

SwaggerHub-Migration-Utility is a migration utility for current SwaggerHub users to move their API Specs and domains to another SwaggerHub Organization.

The other organization can be in a different installation of SwaggerHub. So you can migrate from SmartBears cloud hosted to OnPrem or between OnPrem installations.

Important Note

Created by Steven Colon.

This script is not supported by SmartBear Software Inc.

Install Instructions

Made on Python 3.7.1

Requires the requests python library - http://docs.python-requests.org/en/master/

Download Repo locally

Configuration Instructions

config.json file is required in the same directory as the migration script.

Example config can be found here

EXPORT_ORG indicates the organization that you are moving from. IMPORT_ORG indicates the organization that you are moving to.

All fields are required.

The API Key can be found in the account settings - https://app.swaggerhub.com/help/account/settings You will need two different API Keys if the orgs are in separate installations.

Registry API Basepath indicates where the SwaggerHub api can be found. The format of the path changes depending on installation type.

  1. SmartBear Cloud Hosted Installation - Registry API format follows https://api.swaggerhub.com/
  2. On Premise Installation - Registry API format follows https://{Custom Domain}/v1/

Org is the organization name in SwaggerHub.

For the import organization, set "DEFAULT_PRIVATE_VISIBILITY" to true if you want the APIs and domains to be set to private on import or false to set them to public.

Execution Instructions

Execute script python swaggerhub_migration.py

License

Copyright 2019 Steven Colon

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.

About

Migration utility for current SwaggerHub users to move their API Specs and domains to another SwaggerHub Organization.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%