diff --git a/test/test_curl.lua b/test/test_curl.lua new file mode 100644 index 0000000..5bfae5c --- /dev/null +++ b/test/test_curl.lua @@ -0,0 +1,8 @@ +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)