-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Hi, thanks for the app, it's usefull for converting curl API examples to JS code.
Also here is a problem
With input:
curl -X POST 'URL' -H 'Content-Type: application/json' --data '{"name": "Felix", "color": "black"}'Output is:
fetch("https://URL", {
body: "{"name": "Felix", "color": "black"}",
headers: {
"Content-Type": "application/json"
},
method: "POST"
})Take look at body, probably it should be something like: body: "{\"name\": \"Felix\", \"color\": \"black\"}"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels