curl --request POST \
--url https://api.eddy.engineer/v1/bim.graph.brief \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"project": "<string>",
"remove": true,
"request": {},
"update": true,
"variant": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/bim.graph.brief"
payload = {
"name": "<string>",
"project": "<string>",
"remove": True,
"request": {},
"update": True,
"variant": "<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({
name: '<string>',
project: '<string>',
remove: true,
request: {},
update: true,
variant: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/bim.graph.brief', 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/bim.graph.brief",
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([
'name' => '<string>',
'project' => '<string>',
'remove' => true,
'request' => [
],
'update' => true,
'variant' => '<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/bim.graph.brief"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"project\": \"<string>\",\n \"remove\": true,\n \"request\": {},\n \"update\": true,\n \"variant\": \"<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/bim.graph.brief")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"project\": \"<string>\",\n \"remove\": true,\n \"request\": {},\n \"update\": true,\n \"variant\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.graph.brief")
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 \"name\": \"<string>\",\n \"project\": \"<string>\",\n \"remove\": true,\n \"request\": {},\n \"update\": true,\n \"variant\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}Keep a service's request in the project's BIM graph: water, drainage, hydronic, sizing, panels, documents, clashes or a route (BP2, BP3)
Saves (or with remove, takes out) a service’s request (request: its route’s body without key) in the project’s BIM graph as <kind>/<name>, then brings the graph up to date. At every sync the gateway prepares the request as its route does (the value tables at their revisions, the records the caller may read), so a new adoption of a table makes the node stale; the node’s value is the service’s own answer (without the head’s key, with inputs as the route echoes it; a refusal of the inputs is kept as {refused: {code, message}}). A brief that reads value tables and names no on is pinned to today’s date, resolved once here. clashes and route are heavy: deferred until update or /v1/bim.graph.sync {update}, and a route plan is never re-run by itself (D3); its node is applied while the head is the plan’s result. A water brief adds the verdict’s water check; a sizing brief the electrical check (circuits beside it); any piped brief the system graph and MEP7’s measures. R7: checker keeps MEP7’s checker over the graph’s own measures ({state?, on?, packs?, sources?}): its packs (those named, else those adopted in force for state on on) and the tables their rules read are pinned at their revisions when the brief is saved and when a sync names its node in update. A pack or table adopted anew never re-runs it: GET /v1/bim.graph shows the node stale with rules among its causes and rules_moved ({item_id, from, to}), and the graph’s verdict marks its checker check stale, until the person brings it up to date.
curl --request POST \
--url https://api.eddy.engineer/v1/bim.graph.brief \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"project": "<string>",
"remove": true,
"request": {},
"update": true,
"variant": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/bim.graph.brief"
payload = {
"name": "<string>",
"project": "<string>",
"remove": True,
"request": {},
"update": True,
"variant": "<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({
name: '<string>',
project: '<string>',
remove: true,
request: {},
update: true,
variant: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/bim.graph.brief', 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/bim.graph.brief",
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([
'name' => '<string>',
'project' => '<string>',
'remove' => true,
'request' => [
],
'update' => true,
'variant' => '<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/bim.graph.brief"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"project\": \"<string>\",\n \"remove\": true,\n \"request\": {},\n \"update\": true,\n \"variant\": \"<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/bim.graph.brief")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"project\": \"<string>\",\n \"remove\": true,\n \"request\": {},\n \"update\": true,\n \"variant\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.graph.brief")
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 \"name\": \"<string>\",\n \"project\": \"<string>\",\n \"remove\": true,\n \"request\": {},\n \"update\": true,\n \"variant\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{}Body
Response
The sync's answer (as /v1/bim.graph.sync)
The response is of type object.