1.使用 HTTPClient
using HTTPClient.HTTPC
using JSON
using Base.Test
r=HTTPC.get("http://localhost:8088//datacenter//api/r/hust/1/10")
idict = JSON.parse(bytestring(r.body))
print(idict)
2. 使用Curl(已经过时)
3. 使用 Requests
using Requests
using JSON
using Base.Test
data = JSON.parse(get("http://localhost:8088//datacenter//api/r/hust/1/10").data)
print(data)