- In Postman, we can click on "Code snippet" icon (on the right side) to show the curl command (and other commands too).
Note that,
-X = --request
.Parameters in URL,
Status code?
Headers?
If response contains cookies?
The JSON data must be in form of
'{with the "double quotes" inside}'
. This "{single 'quote' inside}"
will not work!In case you wanna get a good form of data (with the quotes) from a variable (Python),
or,
Or with a JSON file,