curl --request GET \
--url https://api.eddy.engineer/v1/rules.versions \
--header 'x-api-key: <api-key>'import requests
url = "https://api.eddy.engineer/v1/rules.versions"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.eddy.engineer/v1/rules.versions', 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.versions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/rules.versions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eddy.engineer/v1/rules.versions")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/rules.versions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"adopt": {
"by": "<string>",
"you": true
},
"adopted": "<string>",
"diff": {},
"head": "<string>",
"item_id": "<string>",
"kind": "rule_pack",
"name": "<string>",
"revisions": [
{}
],
"schema": "<string>",
"withheld": "<string>"
}One rule pack's, value table's or practice pack's versions, who adopted each, and what changed (`ss.rules.versions/1`, R5)
The Rules page’s read of one item (read-only). revisions, oldest first: rev, state, created_at, released_at, key (the content key) and adopted: your organisation’s adoption of it, {by, at} (either null where it was not recorded), or null. head, and adopted (the latest revision your organisation adopted). diff: to (default the head) beside from (default the adopted revision, else the one before), structured: rule packs by rule id, value tables by key, practice packs by row (answer <code> with its scope, value <param>, order <param>); added and removed ({id, row}), changed ({id, fields: [{field, from, to}]}), pack (the pack’s own fields that changed) and unchanged (a count); null where there is nothing to compare. Where a licence forbids the text leaving the engine (IG6), withheld is LICENCE_FORBIDDEN and rows and fields are named without their values. adopt: who adopts it (by: an organisation admin, for every kind since R6) and whether you may (you). Another organisation’s table or practice pack, a pack whose licence binds another holder, and any other item are 404 NOT_FOUND; an unknown from or to is 400 REV_UNKNOWN.
curl --request GET \
--url https://api.eddy.engineer/v1/rules.versions \
--header 'x-api-key: <api-key>'import requests
url = "https://api.eddy.engineer/v1/rules.versions"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.eddy.engineer/v1/rules.versions', 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.versions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/rules.versions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eddy.engineer/v1/rules.versions")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/rules.versions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"adopt": {
"by": "<string>",
"you": true
},
"adopted": "<string>",
"diff": {},
"head": "<string>",
"item_id": "<string>",
"kind": "rule_pack",
"name": "<string>",
"revisions": [
{}
],
"schema": "<string>",
"withheld": "<string>"
}