Comments (13)
There are plans to eventually support it, though it's not on the roadmap atm.
The importer is actually an interface, it's very easy to extend the functionality simply by implementing the importer interface and registering it as a name.
The way the importers work is quite simple really - you need to create a struct
that resembles the swagger format (or can capture it), and the transform it into our own ApiDefinition
format (That's what those private methods are for)
All the bits are there for generalising to a multi-format solution, they just haven't been tied together :-/
The trickier bit would be to generalise the command mode options - as they aren't as modular as they could be. Though you could jsut create a new specific flag handler and then invoke your converter - the longer term plan wa to generalise the whole thing and make it so that importers could jut be "registered".
Bottom line - the whole thing needs a little polish :-S
from tyk.
Okay great, I've started working on the Swagger import. I'm assuming there won't be automation support for it until that's been worked on by you? I haven't found any references in the source code to API Blueprint import other than command mode, so I'm assuming that's all in the Dashboard somewhere.
from tyk.
Hi There,
Yes all of that lives in the dashboard, it's actually shared code - we just need to pull it in. Also, the command mode option will only dump the APi definition to file / memory, not into the DB.
But if you put the basics in, we'll roll it up :-)
Thanks,
Martin
from tyk.
Thought id add this here:
http://mholt.github.io/json-to-go/
Really handy for generating tha massive Swagger struct, if you can get hold of a fully qualified AST for Swagger this will make writing it less painful ;-)
from tyk.
That'll be handy, thanks! We'll probably be taking this on properly in a couple of days time.
from tyk.
+1
from tyk.
👍
from tyk.
Fixed in master, can now be accessed using --import-swagger command line option (same as blueprint). dashboard interface TBC, on roadmap for 1.7.
from tyk.
Thank you very much!
from tyk.
Only basic supprot :-) Mocks not supported (Swagger doesn;t seem to let you define mock responses very well, just schemas)
from tyk.
@lonelycode, I noticed latest Tyk Dashboard docker image includes support for swagger import. Is there an ETA on v0.9.5.4 release?
from tyk.
Hi,
The current dashboard release that is in our GitHub releases section is the same as the one in the docker image, which includes swagger support on imports. So you should have that feature available now.
The next version of the dashboard will be out in the next few months - we have quite a bit to do - take a look at our roadmap:
https://trello.com/b/59d5kAZ5/tyk-api-gateway-roadmap
Cheers,
Martin
from tyk.
Thanks @lonelycode. I have upgraded from v0.9.3 to v0.9.5.3 but did not see Swagger option. Just found out it was due to browser cache.
from tyk.
Related Issues (20)
- [TT-11223]ERROR: Tyk PUMP not able to connect to Redis Sentinels HOT 1
- Error with middleware in one gateway while other pods are working fine HOT 1
- KV Store config not read in tyk.conf (security.certificates.upstream) HOT 4
- User not authorized when using basic authentication HOT 1
- OAS API: transformRequestMethod.toMethod expects boolean instead of string HOT 1
- Automatic retries when there are specific errors from Upstream
- How to define proxy.listen_path as exact path? HOT 4
- HTTP/2 Continuation Frame Vulnerability
- graphql playground error for federation
- Add HTTP proxy support to MDCB
- Tyk cannot validate client certificates against a certificate authority HOT 2
- Profile Raw Editor cursor placement HOT 2
- Support multiple JWKS sources / one source per OIDC provider/issuer
- [TT-12318] SSE Streaming is broken HOT 3
- Stream Request getting aborted after 2 minutes HOT 1
- Support exporting custom header values in opentelemetry as span attributes
- No matching KID could be found on rotated JWKS
- Multi-value response headers lost after sync with coprocess middleware
- Unable to build locally due to missing redis/v9 revision v9.5.3 HOT 2
- Websocket connection is not upgraded when `keep-alive` is added to Connection
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tyk.