import requests
import json

HOST = "http://127.0.0.1:9000/invoke"

data = dict()

data["project_id"] = 1
data["code_id"] = 6
data["user_id"] = 1

param = {}

data["params"] = param

jsonData = json.dumps(data)

headers = {"Content-type":"application/json"}

ret = requests.post(HOST,jsonData, headers= headers)

print(ret.text)

import requests
import json

HOST = "http://127.0.0.1:9000/invoke"

data = dict()

data["project_id"] = 1
data["code_id"] = 6
data["user_id"] = 1

param = ["www.google.com"]

data["params"] = param

jsonData = json.dumps(data)

headers = {"Content-type":"application/json"}

ret = requests.post(HOST,jsonData, headers= headers)

print(ret.text)

add parameter on test code