You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
344 B
25 lines
344 B
|
|
import requests
|
|
import sys
|
|
import json
|
|
|
|
def server():
|
|
url = "http://10.129.28.219:5001/register/dag"
|
|
input_json_file = open(sys.argv[1])
|
|
params = json.load(input_json_file)
|
|
reply = requests.post(url = url,json = params,verify=False)
|
|
print(reply.json())
|
|
|
|
|
|
def main():
|
|
server()
|
|
|
|
if __name__=="__main__":
|
|
main()
|
|
|
|
|
|
|
|
|
|
|
|
|