Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Melodic
morphemic-preprocessor
Commits
70b98a9a
Commit
70b98a9a
authored
Jun 01, 2022
by
Jean-Didier
Browse files
import export
parent
d58fe3ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
polymorphic_solver/src/api.py
View file @
70b98a9a
...
...
@@ -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
(
"
im
porting camel model"
)
print
(
"
ex
porting camel model"
)
data
=
{
"filename"
:
"init_camel.xmi"
,
"resource_name"
:
application_id
}
response
=
requests
.
post
(
url
=
camel_converter_hostname
+
"/
im
port_model"
,
data
=
json
.
dumps
(
data
),
headers
=
{
"Content-Type"
:
"application/json"
})
response
=
requests
.
post
(
url
=
camel_converter_hostname
+
"/
ex
port_model"
,
data
=
json
.
dumps
(
data
),
headers
=
{
"Content-Type"
:
"application/json"
})
print
(
response
.
text
)
except
Exception
as
e
:
pass
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment