[[官方文檔]](https://www.getpostman.com/)
Postman allows you to publish documentation quickly and easily. Postman automatically pulls your sample requests, headers, code snippets, etc. to populate your documentation page with dynamic examples and machine-readable instructions so you can easily share your API with the rest of the world.
*****
`PostMan`除了能很方便的測試后端接口,讓后端童鞋們能略過前端直接檢測接口的同時呢。
也能讓前端童鞋們不用催著、等著后端童鞋們寫接口了,我們可以通過`Mock`來本地模擬真實接口,返回固定數據。這樣在數據結構確定之后,我們就可以直接開寫代碼咯,最后再切換成真實接口即可。
1. 創建接口集合(collection)
2. 在集合中添加一個接口(request)
3. 添加環境(envirement)
環境這個概念,可以通俗一點的理解成一個集合。我們把同一個項目中用到的一些重復的變量,比如說接口的域名`www.xxx.com`,我們就可以放在環境里面當成一個變量。正式環境與測試環境可以隨時切換,而不用我們去每個接口都修改一下。
4. 創建`Mock Server`
創建一個虛擬服務來給我們寫前端用。
5. 為虛擬服務地址建立環境變量
## Plus
[# 使用Postman的模擬服務模擬(mock)后端](https://blog.csdn.net/u013613428/article/details/82053793)
- WebAPP
- Linux Command
- 入門
- 處理文件
- 查找文件單詞
- 環境
- 聯網
- Linux
- Linux目錄配置標準:FHS
- Linux文件與目錄管理
- Linux賬號管理與ACL權限設置
- Linux系統資源查看
- 軟件包管理
- Bash
- Daemon/Systemd
- ftp
- Apache
- MySQL
- Command
- Replication
- mysqld
- remote access
- remark
- 限制
- PHP
- String
- Array
- Function
- Class
- File
- JAVA
- Protocals
- http
- mqtt
- IDE
- phpDesigner
- eclipse
- vscode
- Notepad++
- WebAPI
- Javasript
- DOM
- BOM
- Event
- Class
- Module
- Ajax
- Fetch
- Promise
- async/await
- Statements and declarations
- Function
- Framwork
- jQurey
- Types
- Promise
- BootStrap
- v4
- ThinkPHP5
- install
- 定時任務
- CodeIgniter
- React.js
- node.js
- npm
- npm-commands
- npm-folder
- package.json
- Docker and private modules
- module
- webpack.js
- install
- configuration
- package.json
- entry
- modules
- plugins
- Code Splitting
- loaders
- libs
- API
- webpack-cli
- Vue.js
- install
- Compile
- VueAPI
- vuex
- vue-router
- vue-devtools
- vue-cli
- vue-loader
- VDOM
- vue-instance
- components
- template
- Single-File Components
- props
- data
- methods
- computed
- watch
- Event-handling
- Render Func
- remark
- 案例學習
- bootstrap-vue
- modal
- fontAwesome
- Hosting Font Awesome Yourself
- using with jquery
- using with Vue.js
- HTML
- CSS
- plugins
- Chart.js
- D3.js
- phpSpreadSheet
- Guzzle
- Cmder
- Git
- git命令
- git流程
- Postman
- Markdown
- Regular Expressions
- PowerDesigner
- 附錄1-學習資源