Open vikyd opened 3 years ago
curl :
curl 'http://localhost:9999/myApi' \ -H 'Content-Type: application/json;charset=UTF-8' \ --data-raw '{"name":"d4"}' \ --compressed
result:
{ "result": true, "output": [ { "type": "request", "data": { "method": "POST", "name": "http://localhost:9999/myApi", "url": "http://localhost:9999/myApi", "header": [ { "key": "Content-Type", "value": "application/json;charset=UTF-8" } ], "body": { "mode": "raw", "raw": "{\"name\":\"d4\"}" }, "description": "Generated from a curl request: \ncurl 'http://localhost:9999/myApi' -H 'Content-Type: application/json;charset=UTF-8' --data-raw '{\\\"name\\\":\\\"d4\\\"}' --compressed" } } ] }
want (part) (missing the options):
options
"body": { "mode": "raw", "raw": "{\"name\":\"d4\"}", "options": { "raw": { "language": "json" } } },
curl :
result:
want (part) (missing the
options
):