当前位置:网站首页>A quietly rising domestic software, low-key and powerful!
A quietly rising domestic software, low-key and powerful!
2022-06-30 11:42:00 【Java confidant_】

1. Background introduction
2. Question elicitation
3. Solution
1.API file
2.API debugging
3.Mock data
4. automated testing
5. Online debugging
1. Code generation
2. Data import / export
One 、API The age of explosion

With the recent mobility of the industry 、 Internet of things 、 Digital transformation 、 The introduction of many concepts such as microservice , Corresponding API The number has exploded , The resulting problem is that the interface connection between the front and back ends is becoming more and more prominent , It is difficult for us to find a suitable technical tool to improve our efficiency . The resulting problem is the tedious interface docking , Front end and back end daily quarrel .
1. Background introduction
Now we actually have a lot of API Tools , stay API Document design is famous Swagger,API Development and debugging we have Postman、 Front end development uses a lot of forms Mock.js、 Automated testing we have JMeter, But because it is multiple software , We need to input the same overlapping data to different systems many times to realize the functions we need , And when the project changes, we have to make changes in several places , If you don't pay attention and forget to modify it, it's just boom.
2. Question elicitation
So in order to meet the above requirements , What we need is to integrate these common software , If the data can be completely interconnected , When we modify one place, it is perfect to modify all the places .
3. Solution

I found out when surfing the Internet today Apifox This artifact , The official propaganda is to integrate the giant software of various industries into a unified program , Through a system 、 A piece of data , Solve the problem of data synchronization between multiple systems . Just define the interface document , Interface debugging 、 data Mock、 Interface testing can be used directly , There is no need to redefine ; Interface documentation and interface development debugging use the same tool , After the interface debugging is completed, it can ensure that it is completely consistent with the interface document definition . Efficient 、 In time 、 accuracy !
Official website address :
https://apifox.cn/a1javazhiyin
The software now supports web It's published , So the whole experience is web On .
Two 、 Core functions
1.API file

stay API The documentation section , It is no longer a cold document in the past , It's completely visual 、 This undoubtedly reduces our learning costs 、 And the documentation follows OpenAPI canonical , It can also improve the standardization of our documents .
2.API debugging

In the interface debugging part , We can create multiple forces in one interface and automatically follow the interface to make changes , also Postman Functions used ,Apifox All of them , Environment variables can be used 、 Global variables 、 Pre post script 、 Global sharing and other functions , It is comprehensive . It also supports running code in any language :js、java、py、php etc. .
3.Mock data


Apifox Fully support Mock.js grammar 、 And extend the ID card 、 Domestic mobile phone number and other common rules , According to the data structure in the interface definition 、 data type , Automatic generation mock The rules . And built-in intelligence mock Rule base , According to the field name 、 Field data type , Intelligent optimization automatically generated mock The rules . Can automatically identify pictures 、 Head portrait 、 user name 、 cell-phone number 、 website 、 date 、 Time 、 Time stamp 、 mailbox 、 Province 、 City 、 Address 、IP Etc , thus Mock Very human data . Support custom rule library , Meet a variety of personalized needs . Support use Regular expressions 、 wildcard To match field name customization mock The rules .
4. automated testing


It supports automated testing after the completion of relevant test case steps and corresponding data configurations 、 We can easily test the code automatically .
5. Online debugging
This document is written in Apifox It's done , I have tried this tool before , I didn't expect that so many powerful new functions have come out recently . Click the run button in the upper right corner of the document , Will appear “ The online operation ” Module

You can directly debug the interface on this interface ! direct 1. Fill in the parameters ,2. Select environment ,3. Point send , The interface request is sent out ! Here is the return result ! There is no need for Postman! Not to mention API Copy it again !

I thought. , If before the launch , It's using Apifox Words , There is simply no accident :
Parameter does not exist ? I got the data after online debugging , By comparison, I know which parameter does not exist
Wrong parameter type ? alike , After online commissioning , By comparison , I know which parameter has the wrong type
Interface does not exist ( Because the interface is written incorrectly )? When debugging, it will be reported that the interface does not exist , Find the back end at the first time ~
3、 ... and 、 Other features
1. Code generation
That's ridiculous , The corresponding business code can be generated directly , Freeing hands has become ctrl + cctrl + v The programmer , According to the interface / Model definition , Automatic generation of various languages / The business of the framework 、 The model code . And support TypeScript、Java、Go、Swift、ObjectiveC、Kotlin、Dart、C++、C#、Rust etc. 130 Languages and frameworks . A bit of science fiction .

2. Data import / export
Support export OpenAPI (Swagger)、Markdown、Html And so on .
Support import OpenAPI (Swagger)、Postman、HAR、RAP2、JMeter、YApi、Eolinker、RAML、DOClever 、Apizza 、DOCWAY、ShowDoc、I/O Docs、WADL、Google Discovery And so on .
This will facilitate our data migration . And we can back up the archive instantly , From now on, I will not be bald for writing documents .

Four 、 Surprise function

As a coder, The final thing is to share ,Apifox Official website API Hub It allows us to easily view other people's projects for learning , At the same time, if we have made a perfect document, we can also share it , Sharing can make us stronger . It can enhance our output capability .
5、 ... and 、 summary
Experience it as a whole , It can only be said Apifox Think very comprehensively , It can free us from the work of document writing and interface docking , Pay more attention to code writing and business logic sorting , If you are tired of interface docking, you might as well try it , You will find that he has done all the right things for you like a nanny .
Official website address :
https://apifox.cn/a1javazhiyin
If there is a problem in the process of use , You can also join Apifox User group questioning and learning .

边栏推荐
- 暑假学习记录
- Win10 R package installation error: not installed in arch=i386
- 线代(高斯消元法、线性基)
- TypeScript ReadonlyArray(只读数组类型) 详细介绍
- 一瓶水引发的“战争”
- 100 important knowledge points that SQL must master: using subquery
- Methods and usage of promise async and await
- Kotlin 协程调度切换线程是时候解开谜团了
- 【重温经典C语言】~c语言中%x、%c、%d、%x等等等、c语言取地址符&的作用、C语言中的 联合体
- 达梦数据冲刺科创板,或成A股市场“国产数据库第一股”
猜你喜欢

考研这些“不靠谱”的经验有多害人?

Evaluation of IP location query interface Ⅲ

dplyr 中的filter报错:Can‘t transform a data frame with duplicate names

STM32F407ZGT6使用SDIO方式驱动SD卡

谁还记得「张同学」?

数据库连接池 druid

揭秘得物客服IM全链路通信过程

How harmful are these "unreliable" experiences in the postgraduate entrance examination?

ESP32-C3入门教程 问题篇⑨——Core 0 panic‘ed (Load access fault). Exception was unhandled. vfprintf.c:1528

启明星辰集团运维安全网关(堡垒机)再次夺得榜首!
随机推荐
R语言去重操作unique duplicate filter
一瓶水引发的“战争”
STM32F407ZGT6使用SDIO方式驱动SD卡
博弈论入门
林克庆到番禺区调研“发展要安全”工作 以“时时放心不下”责任感抓好安全发展各项工作
一个悄然崛起的国产软件,低调又强大!
100 important knowledge points that SQL must master: updating and deleting data
Xu Lei expressed three thanks for the most difficult 618 in 19 years
Methods and usage of promise async and await
100 important knowledge points that SQL must master: using subquery
【西安交通大学】考研初试复试资料分享
AMS source code analysis
The operation and maintenance security gateway (Fortress machine) of Qiming star group once again won the first place!
重新理解oauth2.0协议进行联合登录
再不上市,旷视科技就熬不住了
启明星辰集团运维安全网关(堡垒机)再次夺得榜首!
Esp32-c3 introductory tutorial IOT part ⑤ - Alibaba cloud Internet of things platform espaliyun RGB LED practical mass production solution
压缩状态DP位运算
Handler-源码分析
EMC-浪涌