New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

apiary-gen

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apiary-gen

used to generate an apiary api based on swagger doc.

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-62.5%
Maintainers
2
Weekly downloads
 
Created
Source

Hapi-swagger to Apiary api Generator.

####Requirements:


1. gem install apiaryio // to use apiary cli

2. create a new api on apiary because you need the same.

3. hapi-swagger to generate swagger.json from routes

##Example:

var swagger2apiary = require('swagger2apiary');
var gen = new swagger2apiary({token:'TOKEN from apiary',api_name:'NAME OF API',port:'PORT API RUNS ON'}}

gen.generate();

###Note: Api must be running in order to gen docs because it pulls from localhost:PORT/swagger.yaml

###Second Note: Currently apiary CLI only allows .yaml format for swagger documentation

Keywords

FAQs

Package last updated on 09 Mar 2016

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