Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

digia-apic-publish

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

digia-apic-publish

Tool for publishing an API to the Kesko IBM GW using Digias deployment service.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Helper tool to publish API ot IBM GW using digias publishing service

Can be used to fix issues caused by hapi-swagger-plugin on the fly. Incorparates the fixes on the fly during publish-command.

Usage

Options:
  -V, --version         output the version number
  -h, --help            output usage information

Commands:

  fixswagger [options]
  publish [options]

fixswagger command

Usage: yarn start fixswagger [options]

Options:

  -c, --config <path>  API configuration file (default: config.json)
  -e, --env <env>      Environment to publish to
  -h, --help           output usage information

publish command

Usage: yarn start publish [options]

Options:

  -V, --version            output the version number
  -c, --config <path>      API configuration file (default: config.json)
  -e, --env <env>          Environment to publish to (qa or prod)
  --no-hapi-swagger-fixes  Do not fix issues in swagger.json caused by hapi-swagger-plugin
  -h, --help               output usage information

Sample configuration file

{
  "clientId": "<DIGIA_SERVICE_CLIENT_ID>",
  "clientSecret": "<DIGIA_SERVICE_CLIENT_SECRET>",
  "apis" : [
    {
      "name": "k-rauta-sample-api", // Same technical name as in GW
      "qa": {
        "url": "https://k-rauta-api-sample-qa.herokuapp.com/swagger.json",
        "stageId": "<QA_STAGE_ID_FROM_FIRST_PUBLISH>"
      },
      "prod": {
        "url": "https://k-rauta-api-sample-prod.herokuapp.com/swagger.json",
        "stageId": "<PROD_STAGE_ID_FROM_FIRST_PUBLISH>"
      }
    },
    [...]
  ]
}

FAQs

Package last updated on 05 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc