oastokong
Simple CLI tool to deploy an API in kong-gateway by providing a swagger file
Last updated 6 months ago by vimukthi96 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install oastokong 
SYNC missed versions from official npm registry.

Swagger to Kong Admin

Simple cli tool to deplot swagger definition in kong gateway using Nodejs and oclif framework

oclif Version License JavaScript Style Guide Downloads/week

Pre-requisite

  • node.js
  • Kong

Installation

You can install oastokong either through npm or by cloning the code from this GitHub repo. This README covers the installation steps with npm.

Setup

  1. Run the following command in the terminal
$ npm install -g oastokong

Runnig the Cli-Tool

Make sure kong Admin APi is runing on the localhost:8001 and Admin api security is disabled.

1st Methord

  1. Navigate to the location where the swagger file is located Make Sure the swagger file is named as swagger.yaml
  2. Run the command 'oastokong' This will deploy the API in kong gateway

Example

$ oastokong

2nd Methord

  1. Navigate to the location where the swagger/OAS file is located
  2. Run the command 'oastokong -n='$file_name' This will deploy the API in kong gateway

Example

Assume that the swagger definition is in a file called my file in Yaml format

$ oastokong -n=myfile.yaml

Credits - oclif framework https://oclif.io

Current Tags

  • 0.0.3                                ...           latest (6 months ago)

3 Versions

  • 0.0.3                                ...           6 months ago
  • 0.0.2                                ...           6 months ago
  • 0.0.1 [deprecated]           ...           6 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (11)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |