curl --request POST \
--url https://api.eddy.engineer/v1/multisim.import \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"alp": "<string>",
"alp_blob": "<string>",
"mdl": "<string>",
"mdl_blob": "<string>",
"xmile": "<string>",
"xmile_blob": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/multisim.import"
payload = {
"alp": "<string>",
"alp_blob": "<string>",
"mdl": "<string>",
"mdl_blob": "<string>",
"xmile": "<string>",
"xmile_blob": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
alp: '<string>',
alp_blob: '<string>',
mdl: '<string>',
mdl_blob: '<string>',
xmile: '<string>',
xmile_blob: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/multisim.import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/multisim.import",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'alp' => '<string>',
'alp_blob' => '<string>',
'mdl' => '<string>',
'mdl_blob' => '<string>',
'xmile' => '<string>',
'xmile_blob' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/multisim.import"
payload := strings.NewReader("{\n \"alp\": \"<string>\",\n \"alp_blob\": \"<string>\",\n \"mdl\": \"<string>\",\n \"mdl_blob\": \"<string>\",\n \"xmile\": \"<string>\",\n \"xmile_blob\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/multisim.import")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"alp\": \"<string>\",\n \"alp_blob\": \"<string>\",\n \"mdl\": \"<string>\",\n \"mdl_blob\": \"<string>\",\n \"xmile\": \"<string>\",\n \"xmile_blob\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/multisim.import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"alp\": \"<string>\",\n \"alp_blob\": \"<string>\",\n \"mdl\": \"<string>\",\n \"mdl_blob\": \"<string>\",\n \"xmile\": \"<string>\",\n \"xmile_blob\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"check": {},
"document": {},
"document_key": "<string>",
"report": {},
"source": "<string>",
"version": "<string>"
}Import a model file - AnyLogic .alp, XMILE, Vensim .mdl (A10)
A typed mapping of a model file onto the document. alp: AnyLogic’s XML - agent types, parameters, variables, stocks / flows / dynamic variables (RK4 -> rk4_anylogic, stated), the Process Modeling blocks of the kernel’s launch subset with their parameters, connectors, events, functions, statecharts (by convention), chart templates, experiments (kind by tag, with name heuristics reported); every Java body, staged block (its rung named), block of another library (A11), unknown tag and out-of-envelope construct is a row of report.refusals; drawn SD links are checked against the derived graph (report.warnings). xmile: the engine’s own parser. mdl: Vensim through the PySD worker’s parser at the boundary (external; needs SS_PYSD - unset is a 422 MULTISIM_IMPORT_UNAVAILABLE). The document holds only what mapped, is stored (document_key) and Checked. TL3c: alp_blob, xmile_blob or mdl_blob (a blob id) instead of the file’s text: the file is read from the blob as the caller and imported exactly as if sent inline; giving a file twice is 400 FILE_GIVEN_TWICE, a blob that is not UTF-8 text 400 BLOB_NOT_TEXT.
curl --request POST \
--url https://api.eddy.engineer/v1/multisim.import \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"alp": "<string>",
"alp_blob": "<string>",
"mdl": "<string>",
"mdl_blob": "<string>",
"xmile": "<string>",
"xmile_blob": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/multisim.import"
payload = {
"alp": "<string>",
"alp_blob": "<string>",
"mdl": "<string>",
"mdl_blob": "<string>",
"xmile": "<string>",
"xmile_blob": "<string>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
alp: '<string>',
alp_blob: '<string>',
mdl: '<string>',
mdl_blob: '<string>',
xmile: '<string>',
xmile_blob: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/multisim.import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/multisim.import",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'alp' => '<string>',
'alp_blob' => '<string>',
'mdl' => '<string>',
'mdl_blob' => '<string>',
'xmile' => '<string>',
'xmile_blob' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/multisim.import"
payload := strings.NewReader("{\n \"alp\": \"<string>\",\n \"alp_blob\": \"<string>\",\n \"mdl\": \"<string>\",\n \"mdl_blob\": \"<string>\",\n \"xmile\": \"<string>\",\n \"xmile_blob\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/multisim.import")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"alp\": \"<string>\",\n \"alp_blob\": \"<string>\",\n \"mdl\": \"<string>\",\n \"mdl_blob\": \"<string>\",\n \"xmile\": \"<string>\",\n \"xmile_blob\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/multisim.import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"alp\": \"<string>\",\n \"alp_blob\": \"<string>\",\n \"mdl\": \"<string>\",\n \"mdl_blob\": \"<string>\",\n \"xmile\": \"<string>\",\n \"xmile_blob\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"check": {},
"document": {},
"document_key": "<string>",
"report": {},
"source": "<string>",
"version": "<string>"
}Body
TL3c: a blob id (b3:<64 hex>: an upload's blob_id, an attachment's blob) holding the file, instead of alp: read as the caller under the read gate (a blob the caller may not read answers 404 BLOB_NOT_FOUND, as an absent one) and imported exactly as if its contents were sent inline. Give one of the two (both: 400 FILE_GIVEN_TWICE).
TL3c: a blob id (b3:<64 hex>: an upload's blob_id, an attachment's blob) holding the file, instead of mdl: read as the caller under the read gate (a blob the caller may not read answers 404 BLOB_NOT_FOUND, as an absent one) and imported exactly as if its contents were sent inline. Give one of the two (both: 400 FILE_GIVEN_TWICE).
TL3c: a blob id (b3:<64 hex>: an upload's blob_id, an attachment's blob) holding the file, instead of xmile: read as the caller under the read gate (a blob the caller may not read answers 404 BLOB_NOT_FOUND, as an absent one) and imported exactly as if its contents were sent inline. Give one of the two (both: 400 FILE_GIVEN_TWICE).