问题
I developed POST
api and tried to test them by POSTMAN
I tried to export to curl
command.
I get following code.
curl --location --request POST 'http://localhost:3000/user' --form 'loginId=hikaru' --form 'password=test'
But,when I test such code,empty body was sent to server.
instead that, I modified to the following code.
This code can sent data to server.
curl --data "loginId=hikaru&password=test" http://localhost:3000/user
I'd like to know how to change curl
structure via POSTMAN
GUI.
generated code was slightly strange.
If someone has opinon,please let me know. thanks
来源:https://stackoverflow.com/questions/63975233/how-to-modify-curl-post-command-in-postman