Commit 70b98a9a authored by Jean-Didier's avatar Jean-Didier
Browse files

import export

parent d58fe3ec
......@@ -135,9 +135,9 @@ def create_invoque_camel_converter(application_id, uri_notification, groups):
new_camel_model_name = "{0}_ps_archetype-1.xmi".format(application_id)
try:
print("importing camel model")
print("exporting camel model")
data = {"filename": "init_camel.xmi", "resource_name": application_id}
response = requests.post(url=camel_converter_hostname+"/import_model", data=json.dumps(data), headers={"Content-Type":"application/json"})
response = requests.post(url=camel_converter_hostname+"/export_model", data=json.dumps(data), headers={"Content-Type":"application/json"})
print(response.text)
except Exception as e:
pass
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment