cURL Importer
Converta comandos curl em request, fetch e HTTPie.
Comando curl
Request
{
"method": "POST",
"url": "https://api.example.com/users",
"headers": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": "{\"name\":\"Ana\"}"
}fetch
await fetch("https://api.example.com/users", {
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"body": "{\"name\":\"Ana\"}"
});HTTPie
http POST https://api.example.com/users Content-Type:application/json <<< '{"name":"Ana"}'