使用 Postman 进行 API 网络服务测试 [英] API webservice testing with Postman

查看:29
本文介绍了使用 Postman 进行 API 网络服务测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Chrome 中安装了 Postman 来测试

I installed Postman inside Chrome to test Kairos API webservice. I have set following fields:

我收到错误消息,但关于 API 文档,它应该以这种格式工作.

I get error message, but regarding to API documentation it should be working in this format.

缺少身份验证参数

推荐答案

Kairos 的网站上说:

On Kairos' website it says:

请求必须使用您的 API 密钥进行身份验证.这必须作为 HTTP 标头发送.

Requests must be authenticated with your API key. This must be sent as an HTTP header.

所以点击以前使用过的"下的将令牌添加到标题"单选按钮而不是将令牌添加到网址"按钮,它应该可以工作!

So click the "Add token to the header" radio button under "Previously Used" instead of the "Add token to the url" button, and it should work!

这篇关于使用 Postman 进行 API 网络服务测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆