Socket
Book a DemoInstallSign in
Socket

openapi-swagger-editor-live

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi-swagger-editor-live

Swagger editor that save automatically on yaml file

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

OpenAPI Swagger Editor Live

A live swagger editor that saves your changes back to the file.

Installation

npm install openapi-swagger-editor-live -g

Usage

openapi-swagger-editor-live <swagger file path here>

You can also specify host or port number by passing --host or --port option:

openapi-swagger-editor-live <swagger file path here> --host=0.0.0.0 --port=8000

If you're using multiple files with swagger:

openapi-swagger-editor-live <swagger file path here> --folder=api

Docker

Usage

CLI

docker run -it -e EDITOR_PORT=3001 -p 3001:3001 -v /local/path/to/swagger.yaml:/swagger/swagger.yaml vmaillart/openapi-swagger-editor-live

Port by default is 8000.

Docker compose

version: "3"

services:
  swagger-editor:
    image: vmaillart/openapi-swagger-editor-live
    environment:
      - EDITOR_PORT=3001
    volumes:
      - /local/path/to/swagger.yaml:/swagger/swagger.yaml
    ports:
      - "3001:3001"

FAQs

Package last updated on 19 Feb 2020

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