【发布时间】:2016-12-17 22:35:23
【问题描述】:
我必须在 GET 请求中发送 id 数组作为参数。如何在 Postman 中测试它(用于 API 测试的谷歌浏览器扩展)?
场景是我有网址,www.something.com/activity/poi_ids
poi_ids 应该包含像 [316,318] 这样的 id 数组
在api端使用express,
app.get('/activity/:poi_ids',function(req,res){
var poi_ids = req.params.poi_ids;
.......
.......
});
【问题讨论】: