background

Swagger, Confluence API Manager, Confluence API Manager, Confluence API Manager, Swagger API Manager, Confluence API Manager, Confluence API Manager

I personally don’t like Swagger. I feel that “code is document”, and the ubiquity of documents in code has caused some invasion of code. API Manager is a pure API document management tool. Confluence is one of the most versatile and easiest to install online, with support for a variety of plugins, layouts, MD documentation, tables, code blocks, and more.

Recently I saw an article about YAPI, so I decided to build one to try it out.

YAPI profile

YAPI is an open source API management tool of Qunar. The concept is as follows:

YApi makes interface development easier and more efficient, makes interface management more readable and maintainable, and makes team collaboration more reasonable.

Features:

Define the structure and documentation of the data returned by the interface based on Json5 and Mockjs, making it multiple times more efficient

The flat permission design ensures the management of large-scale enterprise-level projects and the ease of use

Interface debugging like Postman

Automated testing with support for Response assertion

MockServer, in addition to supporting regular random mocks, adds mock expectations, which return expected data based on set request filtering rules

Support postman, HAR, Swagger data import

Free, open source, Intranet deployment, information is no longer afraid to leak

The reason I chose YAPI to try it out was because I saw that it supports MockServer so that front-end developers don’t have to wait for back-end students. I’m too lazy to build a mock service, so why not? So today I found a server to install it. Take typesetting into consideration and put it out in picture form.

Depend on the environment

  • Operating system version: Linux CentOS 7.4
  • nodeJS
  • MongoDB
  • Git

Installation steps

NodeJs installation

NodeJS can be downloaded from nodejs.org/dist/v10.16…

NodeJS installation command

NodeJS is installed.

Mongo installation

MongoDB Installation Commands

Git installed

Yum -y install gitCopy the code

YAPI installation

YAPI installation, GitHub has a more detailed documentation: github.com/YMFE/yapi, this…

Visual deployment:

YAPI visual deployment

After yAPI is installed, visit http://127.0.0.1:9090 for visual configuration step by step.

Cli deployment (recommended) :

Command-line deployment (recommended)

After yAPI is installed, you can access port} configured in http://127.0.0.1:{config.json.

Run YAPI in the background

The NODE needs to install the PM2 module and run yAPI in the background using the PM2 module:

Pm2 run yapi

Successful Operation page:

Yapi running success page

At this point, YAPI is installed, simple and practical is still good, because it is domestic, the overall operation style is more accustomed to. In YAPI, interface changes are recorded

YAPI console

Explore the advanced features of MockServer, interface testing, and more.

What better API management tools do you have? What are the essential features of a good API management tool? Welcome recommendation and discussion!