Swagger Import on tyk dashboard

Imported Google Group message. Original thread at: https://groups.google.com/forum/#!topic/tyk-community-support/e2jTzK8HL7A Import Date: 2016-01-19 21:20:49 +0000.
Sender:Michael Rivera.
Date:Wednesday, 19 August 2015 12:11:05 UTC+1.

I have installed an instance of Tyk 1.7.1 and the tyk dashboard 0.9.5. I am having trouble figuring out how to import a swagger documented api.
It is not clear what JSON document information the import is expecting.

I have tried different information from one of our internal swagger documented sites but I have not been able to import this api using this tool.
Any guidance or information regarding this process would be appreciated.

Imported Google Group message.
Sender:Martin Buhr.
Date:Wednesday, 19 August 2015 12:44:43 UTC+1.

Hi Michael,

Tyk expects the same json format that is used in the pet store swagger example.

Are you importing to the portal or as an api definition?

Thanks,
Martin

  • show quoted text -

  • show quoted text -


You received this message because you are subscribed to the Google Groups “Tyk Community Support” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web, visit https://groups.google.com/d/msgid/tyk-community-support/60820e44-4561-4a36-9ecb-884db76a86ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Imported Google Group message.
Sender:Michael Rivera.
Date:Wednesday, 19 August 2015 16:33:56 UTC+1.

I am using the import process, inside of the portal.

I also tried to import based on the pet store example

I copied the content of the json file for http://petstore.swagger.io/v2/swagger.json and specified http://petstore.swagger.io and http://petstore.swagger.io/v2 as the upstream target but it still fails.

It is not clear to me what is placed in these setup screen. Any further guidance is appreciated.

  • show quoted text -

Imported Google Group message.
Sender:Martin Buhr.
Date:Wednesday, 19 August 2015 16:37:26 UTC+1.

Hi Michael,

In that case we’ll need some more information.

Is the dashboard showing any output in the terminal console?

If you could share the dashboard log output when you try to import the swagger file we can get to the bottom of things.

Also to help us diagnose, is your browser developer console showing any errors?

Cheers,
Martin

  • show quoted text -

  • show quoted text -


You received this message because you are subscribed to the Google Groups “Tyk Community Support” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web, visit https://groups.google.com/d/msgid/tyk-community-support/85049a79-5696-457e-9683-7b5d7c51cb1a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Imported Google Group message.
Sender:Michael Rivera.
Date:Wednesday, 19 August 2015 17:50:09 UTC+1.

OK, after some retry we found out what the issue was on our side. It was user error.

Is there a specific version of swagger it supports?

On Wednesday, August 19, 2015 at 7:11:05 AM UTC-4, Michael Rivera wrote:

  • show quoted text -

Imported Google Group message.
Sender:Martin Buhr.
Date:Wednesday, 19 August 2015 17:59:51 UTC+1.

Hi Michael,

We integrated against v2.0 I believe, it’s a direct struct import so will be due for some bugs I’m sure, but the system is modular so fixing them is quite easy :slight_smile:

Cheers,
Martin

  • show quoted text -

  • show quoted text -


You received this message because you are subscribed to the Google Groups “Tyk Community Support” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web, visit https://groups.google.com/d/msgid/tyk-community-support/5cd93864-58b4-4184-8315-2615e02e2366%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Imported Google Group message.
Sender:Michael Rivera.
Date:Wednesday, 19 August 2015 18:10:37 UTC+1.

We have a api site that uses swagger 1.2. Is this something that you can add support for?
If not that is fine.

On Wednesday, August 19, 2015 at 7:11:05 AM UTC-4, Michael Rivera wrote:

  • show quoted text -

Imported Google Group message.
Sender:Martin Buhr.
Date:Wednesday, 19 August 2015 18:13:51 UTC+1.

Hi Michael,

I would suggest trying it out first (you can see the paths that were exported in the api editor tab), we only import some of the fields to create an API Definition framework, if the fields that we pay attention to are the same in both versions then you might be ok.

If it doesn’t work, we can add it - raise a github issue in our repo and we’ll see what we can do :slight_smile:

Cheers,
Martin

  • show quoted text -

  • show quoted text -


You received this message because you are subscribed to the Google Groups “Tyk Community Support” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web, visit https://groups.google.com/d/msgid/tyk-community-support/414ce993-b849-4fd0-8a52-5fd8f0009f12%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.