API测试
如何使用apifox网页工具测试API
::: tip
当前仅支持英文版测试,请切换到英文在线文档
在API文档页面,点击“run in apifox”
:::
::: tip
安装apifox chrome 扩展
兼容Chrome和Opera
UAT
Choose UAT environment in the top right corner, the api key is pre-configured.
Go to the API, click drop down button and find the pre-set test case, click "send".
Go to console, output of every step of signing calculation is printed.
Go to "pre-process" step, click on the sign-v2 script and check the content for reference of the signature implementation. It is written in
javascript
and is compatible with postman
Prod
Choose Production environment, configure:
- lfAccessKeyId - this is the key ID
- privateKey - this is the private key, fill in the value without pem header ( refer to UAT value)
Find the preset test case, but remember to change the sim_id to the actual sim_id that exists in your organisation production environment.
Or you could run a single case from the API
Support
If a request failed unexpectedly, you may submit the unique request id embedded in the response header for further assistance.