当前位置:网站首页>[tool] apifox
[tool] apifox
2022-07-26 22:13:00 【Average again】
List of articles
Preface
Apifox yes API file 、API debugging 、API Mock、API Automated testing integrated collaboration platform , location Postman + Swagger + Mock + JMeter. Through a system 、 A piece of data , Solve the problem of data synchronization between multiple systems . Just define API file ,API debugging 、API data Mock、API Automated testing can be used directly , There is no need to redefine ;API Documentation and API Development and debugging use the same tool ,API After the commissioning, it can be guaranteed and API The document definition is exactly the same . Efficient 、 In time 、 accuracy
Best practices
- front end ( Or back end ) stay Apifox Finalize the first draft of the interface document .
- Front and rear ends Review together 、 Improve interface documents , Define interface use cases .
- front end Use the interface automatically generated by the system according to the interface document Mock Data into development , No handwriting required mock The rules .
- Back end Use interface use cases to debug interfaces in development , As long as all interface use cases are debugged , The interface development is completed . If the interface changes during development , When debugging, the document is automatically updated , Zero cost ensures the timeliness of interface maintenance .
- Back end Each time a function is debugged, it is saved as an interface use case .
- Testers Test interfaces directly using interface use cases .
- After all interfaces are developed , Testers ( It can also be the back end ) Use the set test function to carry out multi interface integration test , Completely test the whole interface call process .
- Front and rear ends All developed , Front end from Mock Data switching to official data , Joint commissioning usually goes very smoothly , Because both the front and back sides fully comply with the specification of the interface definition .
Basic concepts
- Interface design : Define interface specifications ( Such as interface path 、 Parameters 、 Return value 、 Data structure, etc ), That is to write interface documents .
- Interface operation : Enter specific interface parameters , And then run , It is mainly used to debug the interface . After the interface runs, click the save as use case button , Interface use cases can be generated , Interface use cases can be run directly later , No more parameters need to be entered , Very convenient .
- Interface use cases : Usually, an interface has multiple use cases , For example, the parameters are correct, and the use case 、 Parameter error use case 、 Data is empty use case 、 Different data state use cases, etc . The correctness of data will be automatically verified when running the interface case , Using interface use cases to debug interfaces is very efficient .
- Data model : Reusable data structure , Define the interface return data structure and request parameter data structure ( only JSON and XML Pattern ) You can directly reference .
- Set test : Multi interface integration test , There are mainly functional tests 、 Performance testing 、 Contrast test .
- Quick request : similar Postman Interface debugging mode , The main purpose is to temporarily debug some interfaces that do not need to be documented , You can quickly debug without defining the interface in advance .
- Code generation : Define according to the interface and data model , The system automatically generates the interface request code 、 Front end business code and back-end business code .
Interface Overview



Apifox and Apipost Choose to see this
Apifox and Apipost What's the difference? ? Who is better ?
Official documents
边栏推荐
- Pytoch -- used by visdom
- Selenium automated test interview questions family bucket
- A bowl of noodles in a dream
- Redis 分布式锁 + Lua原子操作
- I successfully landed the automatic testing post, with a maximum monthly salary of 15.4k. I'm great~
- 仅需一个依赖给Swagger换上新皮肤,既简单又炫酷~
- Just one dependency to give swagger a new skin, which is simple and cool
- JMeter自定义日志与日志分析
- Li Kou daily question - day 43 -168. Name of Excel table column
- d和c的符区别
猜你喜欢

A friend with a monthly salary of 50000 told me that you were just doing chores

SQL注入 Less24(二次注入)

Basic operation of (C language) files

My SQL is OK. Why is it still so slow? MySQL locking rules

Concept and classification of processes

1 - "pytorch deep learning practice" - linear model

Triangular wave spectrum of MATLAB excitation model

2018 arXiv preprint | MolGAN: An implicit generative model for small molecular graphs

新兴市场潜力无限,ADVANCE.AI风控产品助中国出海企业筑牢安全发展基础

Flink's real-time data analysis practice in iFLYTEK AI marketing business
随机推荐
Xshell7 personal free download, use
The combobox of easyUI selects the first option by default
Get network time by unity
JDBC summary
Difference between D and C
day07-
判断numpy array数组的维数
软件测试技术之跨平台的移动端UI自动化测试(下)
Matlab draw short-term energy diagram
matlab 短时自相关实现
Knowledge base tools | wechat, document center, image display page can be generated by dragging (with template, directly used)
In depth analysis of the source code, why is the string class immutable? (hit me before you understand)
Ansible installation and use
JDBC operation and entry case of MySQL
寻找数字零售的发展新方向,才是保证数字零售可以进入到全新发展阶段的关键
Just one dependency to give swagger a new skin, which is simple and cool
正规方程法(Normal Equation)原理以及与梯度下降法的区别
自己学习Cesium的笔记简介
Pytoch -- used by visdom
09.01 深度优先搜索