curl --request POST \
--url https://api.eddy.engineer/v1/rules.try \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"item_id": "<string>",
"sample": {
"briefs": "mep33",
"only": [
"<string>"
]
},
"rev": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/rules.try"
payload = {
"item_id": "<string>",
"sample": {
"briefs": "mep33",
"only": ["<string>"]
},
"rev": "<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({
item_id: '<string>',
sample: {briefs: 'mep33', only: ['<string>']},
rev: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/rules.try', 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/rules.try",
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([
'item_id' => '<string>',
'sample' => [
'briefs' => 'mep33',
'only' => [
'<string>'
]
],
'rev' => '<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/rules.try"
payload := strings.NewReader("{\n \"item_id\": \"<string>\",\n \"sample\": {\n \"briefs\": \"mep33\",\n \"only\": [\n \"<string>\"\n ]\n },\n \"rev\": \"<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/rules.try")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"item_id\": \"<string>\",\n \"sample\": {\n \"briefs\": \"mep33\",\n \"only\": [\n \"<string>\"\n ]\n },\n \"rev\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/rules.try")
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 \"item_id\": \"<string>\",\n \"sample\": {\n \"briefs\": \"mep33\",\n \"only\": [\n \"<string>\"\n ]\n },\n \"rev\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"adopted": true,
"against": {},
"candidate": {},
"check": {},
"item_id": "<string>",
"kind": "<string>",
"name": "<string>",
"practice": {},
"sample": {},
"schema": "<string>",
"stored": true
}Try a candidate rule pack, value table or practice pack on a sample, beside what is in force (`ss.rules.trial/1`, R6)
“Try on a sample” (the Rules page). Nothing is stored and nothing is adopted: no item, revision, check or artifact is written (stored and adopted are false). rev is the candidate revision (default the head). A practice pack is tried on briefs: sample.briefs mep33 (the MEP33 eval briefs, invented; sample.only picks ids), each laid out as on a new project on the heavy lane under the practice in force (against; null: our starting values alone) and under the candidate; practice.briefs[] gives each side (questions, could_not with each code’s cause class, practice as the layout applied it, commands, plan digest, or refused) and changed: answered_now, asked_now, cleared, raised, refusal, plan_changed, any; practice.summary counts them. A rule pack or value table is tried on a building: sample.building {key, sources?, state?, on?, packs?}, checked as /v1/standards.check checks one (store false) twice: with the packs as adopted (packs, else those in force for state, and a rule pack’s own adopted revision) and with the candidate in place (a rule pack under its own item id, a table read in place of its adopted revision). check.diff lists each verdict that changed ({id, from, to, margin_delta}), check.summary counts them (changed, failing_now, passing_now), and against and check.candidate give each run’s packs, tables, counts and clean. TRY_SAMPLE for a sample that does not fit the kind; another organisation’s table or practice pack, a pack whose licence binds another holder, and any other item are 404 NOT_FOUND.
curl --request POST \
--url https://api.eddy.engineer/v1/rules.try \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"item_id": "<string>",
"sample": {
"briefs": "mep33",
"only": [
"<string>"
]
},
"rev": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/rules.try"
payload = {
"item_id": "<string>",
"sample": {
"briefs": "mep33",
"only": ["<string>"]
},
"rev": "<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({
item_id: '<string>',
sample: {briefs: 'mep33', only: ['<string>']},
rev: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/rules.try', 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/rules.try",
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([
'item_id' => '<string>',
'sample' => [
'briefs' => 'mep33',
'only' => [
'<string>'
]
],
'rev' => '<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/rules.try"
payload := strings.NewReader("{\n \"item_id\": \"<string>\",\n \"sample\": {\n \"briefs\": \"mep33\",\n \"only\": [\n \"<string>\"\n ]\n },\n \"rev\": \"<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/rules.try")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"item_id\": \"<string>\",\n \"sample\": {\n \"briefs\": \"mep33\",\n \"only\": [\n \"<string>\"\n ]\n },\n \"rev\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/rules.try")
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 \"item_id\": \"<string>\",\n \"sample\": {\n \"briefs\": \"mep33\",\n \"only\": [\n \"<string>\"\n ]\n },\n \"rev\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"adopted": true,
"against": {},
"candidate": {},
"check": {},
"item_id": "<string>",
"kind": "<string>",
"name": "<string>",
"practice": {},
"sample": {},
"schema": "<string>",
"stored": true
}