Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swagger Editor offline installation

Our company is using swagger to document their API's, currently a couple of developers are using the online swagger editor on their PC's.

I want to move this piece of the design process into our standard development environment, which is in a walled garden without internet access.

How do I go about installing npm and the swagger editor in an offline environment?

There are options to use either RHEL or Windows machines, although Windows is preferable as developers have local admin rights

like image 529
druidoodle Avatar asked Nov 07 '17 17:11

druidoodle


People also ask

What is the difference between Swagger UI and Swagger editor?

Swagger Editor: Swagger Editor lets you edit OpenAPI specifications in YAML inside your browser and to preview documentations in real time. Swagger UI: Swagger UI is a collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from an OAS-compliant API.

Is Swagger editor open source?

The Swagger Editor is an open source editor to design, define and document HTTP-based and event-driven APIs using the OpenAPI and AsyncAPI specifications, respectively. Swagger Editor can be installed and run locally, or accessed on the Web.


1 Answers

In short answer is https://swagger.io/docs/swagger-tools/#swagger-editor

git clone https://github.com/swagger-api/swagger-editor.git
cd swagger-editor
npm install
npm run build
npm start

And it will works in your Intranet OK.

like image 190
Akzhan Abdulin Avatar answered Sep 25 '22 12:09

Akzhan Abdulin