Preface:
At present, front-end and back-end separation is often used in front-end and back-end development, while front-end and back-end separation has obstacles in communication and joint investigation, such as inconsistent progress of front-end and back-end, short time of front-end and back-end joint investigation, and troublesome communication of front-end and back-end (trans-regional, trans-time zone, etc.). The most common way to solve this problem is to Mock data. What we need is a Web visual interface management tool, open source and free, stable interface, automatic data generation, authority management, it is best to support automated testing, dynamic switching environment, etc..
Let’s focus on ali’s mother’sRAPThe latest update has arrivedRAP2) and lilac Gardenapi-mockerVersion, both wired version and offline deployment version.
-
Online version experience poke meRAP2&&api-mocker.
features | RAP2 (Ali) | API – Mocker (Lilac Garden) |
---|---|---|
Online use | Stable service, suitable for enterprise and team cooperation, can be directly used online (RAP2) | The online interface is unstable and non-confidential, so it is not recommended to use it directly. |
Range of application | Wide popularity | Less well known |
Page friendly | Not too friendly | Friendly |
The main building environment | Node.js 8.9.4+, MySQL 5.7+, Redis 4.0+ | MongoDB+vue+Nginx (or Tomcat), etc |
Expand the grammar | Supports Mock. Js, which can Mock data randomly | Supports Mock. Js, which can Mock data randomly |
The interface name | You can customize the interface address suffix | Randomly generated suffixes |
The agent | Seems to be no | Can proxy forwarding online and offline addresses, easy to switch between different environments |
Plug-in development | Kissy and jQuery plug-ins are supported | Seems to be no |
To allocate | Powerful permission management capability | There is no team management, only interface read and write permission management |
Interface documentation | Seems to be no | Automatically generates interface documents and subscribes to email notifications of interface changes |
Interface state simulation | Set requestStatus when generating the interface | Simulate switching between different requestStatus(switching between different states of the same interface), simulate interface delay, etc |
Applicable scenario | Suitable for enterprises, large team cooperation | Suitable for individuals and small groups |
From the above comparison, it seems that RAP2 focuses more on mock data professional ability, which is very professional, while API-Mocker is further developed on the basis of RAP. It tends to expand functions and is more user-friendly, such as switching between different environments, email subscription, etc. Different network usage scenarios such as interface latency and requestStatus are also taken into account.
Here I prefer to use Ali’s technical solutions, mainly considering the interface suffix name customization and permission management, of course, I also like apI-Mocker’s various human solutions, if I can keep up with ali’s updated steps, make up for these shortcomings.