-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[request] Import Swagger 2.0/OAS #334
Comments
👍 for swagger 2.0 support |
+1 |
+1 |
Is there any details on this feature request? Kong works like a proxy, so details of Endpoints shouldn't even be required. What am I missing? |
Going out on a limb and imagining that the request is to consume Swagger API documents and auto-configure the proxies to them, including consuming and wiring up the security definitions contained in them. As far as endpoints I think it would simply be consuming This is a great idea but should be relatively trivial to push these configurations to Kong's REST api directly rather than require Kong to do any work. |
I totally agree with that thought. It is very trivial to do it without a plugin. |
example of one way of doing it http://docs.aws.amazon.com/apigateway/latest/developerguide/create-api-using-import-export-api.html |
someone working in this feature? |
+1 |
Any news regarding an open-source Swagger/OpenAPISpec plugin for Kong? |
+1 |
Would be nice, if the kong, can also generate one swagger json, from the added APIs and microservices, adding information about kong's resources for this API (authentication by example). |
I've written a basic script in Node.js which can load the petstore Swagger 2.0 document and import it into the Kong Admin API. Basic parsing / import script is simple. Using plain JavaScript and a separate simple REST client for Kong Admin API. Unfortunately, it seems it's not possible to fully import petstore due to lack of regex routing of A possible workaround with the current version of Kong is to omit the named routes from petstore and use a proxy. Considering this defeats the purpose of setting up granular routes based on Swagger, we had to choose to drop the Swagger import feature ( for now ). In addition, multiple Swagger imports per single Kong instance is blocked by #369 ( as conflicting cc @thibaultcha |
+1 |
1 similar comment
+1 |
+1 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
1 similar comment
+1 |
Hi Everybody - I'm the Product Manager here at Mashape, and I'd love to hear some more details of what you'd like to see in a feature like this! Tell me about your use case, about the problems you are trying to solve, about how you'd like Kong to help you solve them with Swagger / OpenAPI Spec. Reply herein, or email me [email protected] - thanks in advance! |
Onboarding api via swagger file and maybe a flag to turn on when to do request validation before forwarding request to upstream. I have actually managed to do this by a node app parsing the swagger file and onboard the api. And a plugin to forward the request and its content to the node service before forwarding the request to upstream servers. If I get time I might convert the node app to Lua app then contribute to Kong |
@mwaaas Do you have news about migrating your node app to Lua ? |
@coopr I am evaluating API gateways and we have a requirement to be able to upload our swagger api documents to create APIs in the gateway. We do contract first design with the swagger editor and would like to be able to just import them to create the base api in the gateway. Any word on tools or new features to support this? |
@gfiehler it'd be great to move this discussion to Kong Nation https://discuss.konghq.com/c/feature-suggestions thanks. |
Just for reference; This feature has been added to Kong Enterprise (from 0.36-x versions). A commandline utility |
will this feature available for kong open source? @Tieske |
I think the utility that Tieske is talking about is this: https://www.npmjs.com/package/openapi-2-kong Original source: https://github.com/Kong/insomnia/tree/develop/packages/openapi-2-kong See also discussion in Kong nation. |
@rjshrjndrn It is available in Insomnia Designer, and through the |
chore(ci) add some naive retries to our CI
To prepopulate APIs, authentication and Endpoints inside Kong - perhaps connect with Gelato.
The text was updated successfully, but these errors were encountered: