我使用POSTMAN测试Cloudformation创建的API
POST https://6pppnxxxh.execute-api.eu-central-1.amazonaws.com/Prod/users我得到了
{
"message": "Missing Authentication Token"
}我的prod阶段

我双击PROD Invoke URL。如何解决这个问题?我试过卷曲
curl --header "Content-Type: application/json" --request POST --data '{ "emailaddress" : "acj@rambler.ru,"first name" : "Aca","last name" : "Ljubascikic", "password" : "bbbac_96"}' https://6pppnxxxh.execute-api.eu-central-1.amazonaws.com/Prod/users同样的问题
{"message":"Missing Authentication Token"}如何从CLI进行测试?
发布于 2020-01-14 19:16:32
根据您的屏幕截图,/Prod/users是一种PUT方法,并且您在命令中使用了POST。我会先证实这一点。
希望这能有所帮助。
https://stackoverflow.com/questions/59730915
复制相似问题