Coder Social home page Coder Social logo

apifox_note's Introduction

apifox_note

Apifox = Postman + Swagger + Mock + JMeter。 官网 挺好用的,我就把用法总结了一篇笔记出来。

快捷请求

打开个人项目,使用快捷请求。 公共地址:get请求

https://api.help.bj.cn/apis/nongli/?id=beijing&now=7&T=e

撰写api接口文档

点击保存接口,即可生成接口文档。 到这里一个接口文档已经写好。本地mock也可以直接跑通。

正式开发环境里的API文档

创建正式接口

构建自己的数据模型

接口文档导出

目录导出。

单接口导出

前端mock

避免前端无数据可用,这里mock则可以根据字段名,字段类型,字段约束自动生成数据。

使用自定义随机数据

高级mock

★API调试

你只要会postman这里就是类似。

动态参数

全局变量

自设全局变量引用方式。主要是传参和路径。

{{ data }}

全局参数

主要是请求头,cookie等

环境

表单校验

后置操作

前置操作:处理请求值。 后置操作:处理返回值。

支持目录级的前置后置操作

也支持项目级别的操作

接口测试用例

自动化测试

这里就开始无聊了。毕竟CI/CD工具蛮多的。

自动导入三方接口

项目概览上看。

项目设置上看

在线分享

也支持云端mock 分享接口表给其他人把

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.