简体   繁体   English

我的 postman 不会通过邮寄方式将数据发送到宁静的 api 但其他人会(安装护照后)

[英]my postman don't send data via post to restful api but others do (after installing passport)

I can't send my data via post method in postman.我无法通过 postman 中的 post 方法发送我的数据。 1- my postman is a native app. 1-我的 postman 是本机应用程序。 2- my routes are absolutely correct as you can see below. 2-我的路线绝对正确,如下所示。 3- I'm using API resource in api.php and when I send data with post store function didn't run. 3-我在 api.php 中使用 API 资源,当我使用后存储 ZC1C42145268E1AB'FZ 发送数据时运行。

enter image description here在此处输入图像描述

enter image description here在此处输入图像描述

in my controller everything is fine but every time I call the API index method ran.在我的 controller 中,一切都很好,但每次我调用 API 索引方法时都会运行。 All of my routes have this problem, it looks like post data from my pc have been ignored.我所有的路线都有这个问题,看起来我电脑上的帖子数据被忽略了。

thanks for your support.谢谢你的支持。

Laravel sometimes has an issue with trailing slashes at the end of your URL. Laravel 有时会在 URL 末尾出现斜杠问题。

Try removing it:尝试删除它:

Change this:改变这个:

AnurBuk.naeimsafaee.ir/api/author/

To this:对此:

AnurBuk.naeimsafaee.ir/api/author

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM