We do contract first API creation starting with creating the API spec using the swagger editor, it would be great if we could import that directly into Kong to create the API and also then display all our APIs in a catalogue as a central repository of all active API’s in our environment. It would also be great if Kong could use the Examples specification from swagger to automatically implement simple api mocks, this would allow clients to start coding against the api while it is still being developed.
Yes I added a comment to one of those and was asked by someone from Kong to put the feature request here. So I hope that means they are starting to think about it again.
I agree to this comment. AWS API gateway has this feature since a couple of years now. We are being forced to develop something in-house to meet this gap. It would be good for Kong to put this on roadmap.
Create a function: openapi2kong
This should map the data from an openapi spec file to Kong services configurations. Then, just use Kong API to load your new services.
Publish your package at npm and come back here
Wait Kong open source that Gelato module. We will use your package meanwhile and maybe forever
Hi @Ahmed_Samir. Yes, Kong Studio is part of Enterprise. Kong Studio is Insomnia Designer, which is OSS, plus the Kong integration plugins that generate Kong config from Spec files and deploys Specs to the Kong Dev Portal along with technical support.
Is openapi-2-kong open source project? I cannot find it on github and there’s no license information on npmjs for this package. It looks it’s something internally used by Insomnia?
MIT License
Copyright (c) Insomnia REST Client
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.