为什么我向AWS API Gateway的POST失败了?

我使用POSTMAN测试我Cloudformation创建的API

POST https://6pppnxxxh.execute-api.eu-central-1.amazonaws.com/Prod/users

我知道了

{
    "message": "Missing Authentication Token"
}

我的演出舞台

为什么我向AWS API Gateway的POST失败了?

我仔细检查了PROD调用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进行测试?

felix_sap 回答:为什么我向AWS API Gateway的POST失败了?

根据屏幕快照/Prod/users是一种PUT方法,您在命令中使用了POST。我先确认一下。

希望这会有所帮助。

本文链接:https://www.f2er.com/2772809.html

大家都在问