# swagger-editor **Repository Path**: joybuy/swagger-editor ## Basic Information - **Project Name**: swagger-editor - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-12-22 - **Last Updated**: 2024-05-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Swagger Editor [![Build Status](https://travis-ci.org/swagger-api/swagger-editor.svg?branch=master)](https://travis-ci.org/swagger-api/swagger-editor) [![Code Climate](https://codeclimate.com/github/swagger-api/swagger-editor/badges/gpa.svg)](https://codeclimate.com/github/swagger-api/swagger-editor) [![Dependency Status](https://david-dm.org/swagger-api/swagger-editor/status.svg)](https://david-dm.org/swagger-api/swagger-editor) [![devDependency Status](https://david-dm.org/swagger-api/swagger-editor/dev-status.svg)](https://david-dm.org/swagger-api/swagger-editor-#info=devDependencies) Swagger Editor lets you edit [Swagger API specifications](https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md) in YAML inside your browser and to preview documentations in real time. Valid Swagger JSON descriptions can then be generated and used with the full Swagger tooling (code generation, documentation, etc). **[LIVE DEMO](http://editor.swagger.io)** [![Screenshot of the Swagger Editor](docs/screenshot.png "Designing an API with the Swagger Editor")](http://editor.swagger.io) #### Running with Docker The swagger-editor is published in a [public repository on Dockerhub](https://hub.docker.com/r/swaggerapi/swagger-editor/) You can run editor easily with docker: ```bash docker pull swaggerapi/swagger-editor docker run -p 80:8080 swaggerapi/swagger-editor ``` #### Running Locally [**Download the latest release (v2.10.4)**](https://github.com/swagger-api/swagger-editor/releases/download/v2.10.4/swagger-editor.zip) and serve the static files via your HTTP server. If you don't have an HTTP server, you can use [`http-server`](https://www.npmjs.com/package/http-server) Node.js module. ###### Using `http-server` module: ```shell npm install -g http-server wget https://github.com/swagger-api/swagger-editor/releases/download/v2.10.4/swagger-editor.zip unzip swagger-editor.zip http-server swagger-editor ``` #### Building From Source Make sure you have [Node.js](http://nodejs.org/) installed. ```shell git clone https://github.com/swagger-api/swagger-editor.git cd swagger-editor npm install npm start ``` #### Documentations * [Importing your Swagger document](./docs/import.md) * [Development Guide](./docs/development.md) * [Configuration Guide](./docs/config.md) * [Cross Origin Request Sharing(CORS) issues](docs/cors.md) [Contributing](./.github/CONTRIBUTING.md) [LICENSE](./LICENSE) ---