1.0.2 • Published 2 years ago

@openapihub/oah-provider-cli v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

OAH PROVIDER CLI

This package provides a unified command line interface to OpenAPIHub.

Getting Started

Install via npm i @openapihub/oah-provider-cli -g

Login

  1. Run the command

    oah-provider-cli login
  2. Enter Username and Password after open the browser

  3. You can start using CLI

Create API

Example 1. Get your OpenAPIHub Portal Name on https://provider-portal.openapihub.com

  1. Take examples/api-creation.json as example and update your API information
{
    "api_name": "Hello World API 2",
    "category": "Communications",
    "short_description": "API short description"
}
  1. Prepare your swagger file

  2. Run the command to onboard your API on OpenAPIHub

oah-provider-cli api --portal 'provider portal 123' create --input-json 'examples/api-creation.json' --api-spec 'examples/swagger.json'