怎样用postman测试云端代码

如题!例如有一个方法名字叫test,有一个function

function onRequest(request, response, modules) {
response.end("helloworld yea")
}

在postman里面应该怎样测试?

postman主要是方便你构建http post请求,只需要你填好对应的参数。而不是测试js 函数的

我用Bmob的方法如下:
在REST API中可以调用云端代码。例如,想调用云端代码的方法hello:

curl -X POST \
-H "X-Bmob-Application-Id: Your Application ID" \
-H "X-Bmob-REST-API-Key: Your REST API Key" \
-H "Content-Type: application/json" \
-d '{"name":1337.23,"playerName":"Sean Plott","cheatMode":false}' \

云端代码
在REST API中可以调用云端代码。例如,想调用云端代码的方法hello:

curl -X POST \
-H "X-Bmob-Application-Id: Your Application ID" \
-H "X-Bmob-REST-API-Key: Your REST API Key" \
-H "Content-Type: application/json" \
-d '{"name":1337.23,"playerName":"Sean Plott","cheatMode":false}' \
https://api.bmob.cn/1/functions/hello

参考:http://wenda.bmob.cn/?/question/197