/v1/table
Build a full truth table
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/truthtable-api/v1/table" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/truthtable-api/v1/table", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/truthtable-api/v1/table");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/truthtable-api/v1/table",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"rows": [
{
"index": 0,
"result": 0,
"values": {
"A": 0,
"B": 0,
"C": 0
}
},
{
"index": 1,
"result": 0,
"values": {
"A": 0,
"B": 0,
"C": 1
}
},
{
"index": 2,
"result": 0,
"values": {
"A": 0,
"B": 1,
"C": 0
}
},
{
"index": 3,
"result": 0,
"values": {
"A": 0,
"B": 1,
"C": 1
}
},
{
"index": 4,
"result": 1,
"values": {
"A": 1,
"B": 0,
"C": 0
}
},
{
"index": 5,
"result": 0,
"values": {
"A": 1,
"B": 0,
"C": 1
}
},
{
"index": 6,
"result": 1,
"values": {
"A": 1,
"B": 1,
"C": 0
}
},
{
"index": 7,
"result": 1,
"values": {
"A": 1,
"B": 1,
"C": 1
}
}
],
"minterms": [
4,
6,
7
],
"row_count": 8,
"variables": [
"A",
"B",
"C"
],
"expression": "A AND (B OR !C)",
"true_count": 3,
"canonical_sop": "(A AND !B AND !C) OR (A AND B AND !C) OR (A AND B AND C)",
"classification": "contingency"
},
"meta": {
"timestamp": "2026-06-03T17:42:16.917Z",
"request_id": "0c434d69-5152-4422-bbf6-c2211dd45ae4"
},
"status": "ok",
"message": "Truth table",
"success": true
}