curl --request POST \
--url https://api.eddy.engineer/v1/bim.drainage \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"key": "<string>",
"outlet": 123,
"building_class": "<string>",
"frequency_factor": 123,
"kinematic_viscosity": 123,
"manning_n": 123,
"max_fill": 123,
"max_velocity": 123,
"min_grade_percent": 123,
"min_velocity": 123,
"on": "<string>",
"propose_sizes": true,
"rainfall_intensity_mm_h": 123,
"roughness_mm": 123,
"runoff_coefficient": 123,
"sizes": [
{}
],
"state": "<string>",
"value_table": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/bim.drainage"
payload = {
"key": "<string>",
"outlet": 123,
"building_class": "<string>",
"frequency_factor": 123,
"kinematic_viscosity": 123,
"manning_n": 123,
"max_fill": 123,
"max_velocity": 123,
"min_grade_percent": 123,
"min_velocity": 123,
"on": "<string>",
"propose_sizes": True,
"rainfall_intensity_mm_h": 123,
"roughness_mm": 123,
"runoff_coefficient": 123,
"sizes": [{}],
"state": "<string>",
"value_table": "<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({
key: '<string>',
outlet: 123,
building_class: '<string>',
frequency_factor: 123,
kinematic_viscosity: 123,
manning_n: 123,
max_fill: 123,
max_velocity: 123,
min_grade_percent: 123,
min_velocity: 123,
on: '<string>',
propose_sizes: true,
rainfall_intensity_mm_h: 123,
roughness_mm: 123,
runoff_coefficient: 123,
sizes: [{}],
state: '<string>',
value_table: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/bim.drainage', 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.drainage",
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([
'key' => '<string>',
'outlet' => 123,
'building_class' => '<string>',
'frequency_factor' => 123,
'kinematic_viscosity' => 123,
'manning_n' => 123,
'max_fill' => 123,
'max_velocity' => 123,
'min_grade_percent' => 123,
'min_velocity' => 123,
'on' => '<string>',
'propose_sizes' => true,
'rainfall_intensity_mm_h' => 123,
'roughness_mm' => 123,
'runoff_coefficient' => 123,
'sizes' => [
[
]
],
'state' => '<string>',
'value_table' => '<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.drainage"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"outlet\": 123,\n \"building_class\": \"<string>\",\n \"frequency_factor\": 123,\n \"kinematic_viscosity\": 123,\n \"manning_n\": 123,\n \"max_fill\": 123,\n \"max_velocity\": 123,\n \"min_grade_percent\": 123,\n \"min_velocity\": 123,\n \"on\": \"<string>\",\n \"propose_sizes\": true,\n \"rainfall_intensity_mm_h\": 123,\n \"roughness_mm\": 123,\n \"runoff_coefficient\": 123,\n \"sizes\": [\n {}\n ],\n \"state\": \"<string>\",\n \"value_table\": \"<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.drainage")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"outlet\": 123,\n \"building_class\": \"<string>\",\n \"frequency_factor\": 123,\n \"kinematic_viscosity\": 123,\n \"manning_n\": 123,\n \"max_fill\": 123,\n \"max_velocity\": 123,\n \"min_grade_percent\": 123,\n \"min_velocity\": 123,\n \"on\": \"<string>\",\n \"propose_sizes\": true,\n \"rainfall_intensity_mm_h\": 123,\n \"roughness_mm\": 123,\n \"runoff_coefficient\": 123,\n \"sizes\": [\n {}\n ],\n \"state\": \"<string>\",\n \"value_table\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.drainage")
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 \"key\": \"<string>\",\n \"outlet\": 123,\n \"building_class\": \"<string>\",\n \"frequency_factor\": 123,\n \"kinematic_viscosity\": 123,\n \"manning_n\": 123,\n \"max_fill\": 123,\n \"max_velocity\": 123,\n \"min_grade_percent\": 123,\n \"min_velocity\": 123,\n \"on\": \"<string>\",\n \"propose_sizes\": true,\n \"rainfall_intensity_mm_h\": 123,\n \"roughness_mm\": 123,\n \"runoff_coefficient\": 123,\n \"sizes\": [\n {}\n ],\n \"state\": \"<string>\",\n \"value_table\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"basis": {},
"catchment_m2": 123,
"commands_for_parameters": [
{}
],
"findings": [
{}
],
"gaps": [
{}
],
"group": 123,
"inlets": [
{}
],
"issue_count": 123,
"issues": [
{}
],
"issues_by_class": {},
"key": "<string>",
"kind": "<string>",
"ncc": {},
"outlet": 123,
"parameters": [
{}
],
"roofs": [
{}
],
"runs": [
{}
],
"schema": "<string>",
"sizing": {},
"sizing_refused": {},
"vents": [
{}
],
"verdict": "meets"
}One sanitary or stormwater drainage system of a document: the NCC's discharge-unit method or roof catchment, falls, vents, part-full flow, proposed sizes (MEP11)
Read off the system graph by a BIM worker, as a tree toward outlet (the component whose connector takes the flow away). Sanitary: NCC 2025 Volume Three C1V1 and C2V3, built in (CC BY 4.0, attributed in ncc): each section carries K × ΣDU + other, at least the largest fixture upstream’s discharge units in L/s; K entered, or Table C2V3a’s upper end for building_class; a fixture’s DU is its entered Discharge units or Table C2V3b’s row its Fixture type names; graded runs are solved part full by Colebrook–White (C2V4’s 1.5 mm and 1.01e-6 m²/s unless entered) against C2V1’s 0.8 to 2 m/s and fill (its 0.65:0.35 end read as the most of the area liquid fills, stated). An adopted value table (value_table) adds AS/NZS 3500-shaped checks by key (fixture_units:<type>, max_fixture_units:<pipe type>, min_grade:<pipe type>), cited on each run; no paid value is built in. Storm: each inlet’s C I A / 3600 L/s from its entered Catchment area, rainfall_intensity_mm_h and runoff_coefficient; Manning’s formula with manning_n; the roofs’ plan area beside the catchments (CATCHMENT_SHORT). Findings: DRAIN_FALLS_UPHILL, DRAIN_NO_FALL, DRAIN_OVER_CAPACITY, DRAIN_TOO_FULL, DRAIN_VELOCITY_LOW, DRAIN_VELOCITY_HIGH, DRAIN_GRADE_LOW, DRAIN_OVER_TABLE_LOAD (fail); DRAIN_UNVENTED, VENT_TERMINAL_LOW, DRAIN_SMALLER_DOWNSTREAM, FREQUENCY_FACTOR_OUTSIDE_TABLE, CATCHMENT_SHORT (check). A dry branch rising all the way to an open end is a vent, not a gap. verdict: meets, fails, or unevaluable with gaps.
curl --request POST \
--url https://api.eddy.engineer/v1/bim.drainage \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"key": "<string>",
"outlet": 123,
"building_class": "<string>",
"frequency_factor": 123,
"kinematic_viscosity": 123,
"manning_n": 123,
"max_fill": 123,
"max_velocity": 123,
"min_grade_percent": 123,
"min_velocity": 123,
"on": "<string>",
"propose_sizes": true,
"rainfall_intensity_mm_h": 123,
"roughness_mm": 123,
"runoff_coefficient": 123,
"sizes": [
{}
],
"state": "<string>",
"value_table": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/bim.drainage"
payload = {
"key": "<string>",
"outlet": 123,
"building_class": "<string>",
"frequency_factor": 123,
"kinematic_viscosity": 123,
"manning_n": 123,
"max_fill": 123,
"max_velocity": 123,
"min_grade_percent": 123,
"min_velocity": 123,
"on": "<string>",
"propose_sizes": True,
"rainfall_intensity_mm_h": 123,
"roughness_mm": 123,
"runoff_coefficient": 123,
"sizes": [{}],
"state": "<string>",
"value_table": "<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({
key: '<string>',
outlet: 123,
building_class: '<string>',
frequency_factor: 123,
kinematic_viscosity: 123,
manning_n: 123,
max_fill: 123,
max_velocity: 123,
min_grade_percent: 123,
min_velocity: 123,
on: '<string>',
propose_sizes: true,
rainfall_intensity_mm_h: 123,
roughness_mm: 123,
runoff_coefficient: 123,
sizes: [{}],
state: '<string>',
value_table: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/bim.drainage', 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.drainage",
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([
'key' => '<string>',
'outlet' => 123,
'building_class' => '<string>',
'frequency_factor' => 123,
'kinematic_viscosity' => 123,
'manning_n' => 123,
'max_fill' => 123,
'max_velocity' => 123,
'min_grade_percent' => 123,
'min_velocity' => 123,
'on' => '<string>',
'propose_sizes' => true,
'rainfall_intensity_mm_h' => 123,
'roughness_mm' => 123,
'runoff_coefficient' => 123,
'sizes' => [
[
]
],
'state' => '<string>',
'value_table' => '<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.drainage"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"outlet\": 123,\n \"building_class\": \"<string>\",\n \"frequency_factor\": 123,\n \"kinematic_viscosity\": 123,\n \"manning_n\": 123,\n \"max_fill\": 123,\n \"max_velocity\": 123,\n \"min_grade_percent\": 123,\n \"min_velocity\": 123,\n \"on\": \"<string>\",\n \"propose_sizes\": true,\n \"rainfall_intensity_mm_h\": 123,\n \"roughness_mm\": 123,\n \"runoff_coefficient\": 123,\n \"sizes\": [\n {}\n ],\n \"state\": \"<string>\",\n \"value_table\": \"<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.drainage")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"outlet\": 123,\n \"building_class\": \"<string>\",\n \"frequency_factor\": 123,\n \"kinematic_viscosity\": 123,\n \"manning_n\": 123,\n \"max_fill\": 123,\n \"max_velocity\": 123,\n \"min_grade_percent\": 123,\n \"min_velocity\": 123,\n \"on\": \"<string>\",\n \"propose_sizes\": true,\n \"rainfall_intensity_mm_h\": 123,\n \"roughness_mm\": 123,\n \"runoff_coefficient\": 123,\n \"sizes\": [\n {}\n ],\n \"state\": \"<string>\",\n \"value_table\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.drainage")
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 \"key\": \"<string>\",\n \"outlet\": 123,\n \"building_class\": \"<string>\",\n \"frequency_factor\": 123,\n \"kinematic_viscosity\": 123,\n \"manning_n\": 123,\n \"max_fill\": 123,\n \"max_velocity\": 123,\n \"min_grade_percent\": 123,\n \"min_velocity\": 123,\n \"on\": \"<string>\",\n \"propose_sizes\": true,\n \"rainfall_intensity_mm_h\": 123,\n \"roughness_mm\": 123,\n \"runoff_coefficient\": 123,\n \"sizes\": [\n {}\n ],\n \"state\": \"<string>\",\n \"value_table\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"basis": {},
"catchment_m2": 123,
"commands_for_parameters": [
{}
],
"findings": [
{}
],
"gaps": [
{}
],
"group": 123,
"inlets": [
{}
],
"issue_count": 123,
"issues": [
{}
],
"issues_by_class": {},
"key": "<string>",
"kind": "<string>",
"ncc": {},
"outlet": 123,
"parameters": [
{}
],
"roofs": [
{}
],
"runs": [
{}
],
"schema": "<string>",
"sizing": {},
"sizing_refused": {},
"vents": [
{}
],
"verdict": "meets"
}Body
Response
OK
R1 of the rules plan: the answer's findings as ss.issue/1 (at most 500, in the answer's own order), beside its own fields, which are unchanged: {id (stable), domain, code (the domain's own), kind, outcome, cause {class: model | method | brief | undetermined, also?, why, by? (the evidence a split reads), read? (whether it was read), census}, subjects, at?, measure?, threshold?, unit?, margin?, message, ladder? (R3: {ladder, tried [{rung, params {key: {value, source: ours | brief}}, result: cleared | improved | no_change | refused, why}], next?, stopped: cleared | question | exhausted | budget}), question? (the id of the typed question it raised)}.