Files
resty_functions/test/test_curl.lua
T
2021-09-12 12:05:59 +08:00

9 lines
232 B
Lua

local curl_task = [[curl --location --request POST 'http://localhost:8080/api/v1/ts/create_task' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": ["abc", "def"],
"task_type": 1
}']]
os.execute(curl_task)