Importing to create a versionless API


#1

Imported Google Group message. Original thread at: https://groups.google.com/forum/#!topic/tyk-community-support/NiUMuvKALf4 Import Date: 2016-01-19 21:08:55 +0000.
Sender:Ben King.
Date:Thursday, 2 April 2015 15:53:25 UTC+1.

Hi all,

I am trying to create a versionless API by importing Blueprint. Problem is that I don’t seem to have that option on the import page, and if I import versioned, but then switch to versionles, all my endpoint configuration is lost.

Am I missing something here?

Thanks,

Ben


#2

Imported Google Group message.
Sender:Martin Buhr.
Date:Thursday, 2 April 2015 16:05:43 UTC+1.

Hi Ben,

You may have found an oversight on our part :-/

I beleive the importer will by default try to create a versioned API, but in the latest version of the dashboard switching to a non-versioned API will wipe your version data (this will be in the new designer, which needs to do this in order to keep all the views in sync).

The only way to switch the configuration would be to manipulate the mongoDB record directly. what you would need to do is:

  1. Change both the key name and the name field of the first version in version_data.versions to “Default”
  2. Set the not_versioned flag to True

If you open the api in your dashboard all the path data should now still be present.

Let me know how that goes.

Cheers,
Martin

  • show quoted text -