Zum Inhalt springen
GET /v1/split

Split at t

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/bezier-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/bezier-api/v1/split" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bezier-api/v1/split", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bezier-api/v1/split");
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/bezier-api/v1/split",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "de Casteljau split at t: left_curve and right_curve share the split point and together reproduce the original.",
        "inputs": {
            "t": 0.5,
            "degree": 3
        },
        "left_curve": [
            {
                "x": 0,
                "y": 0
            },
            {
                "x": 0,
                "y": 0.5
            },
            {
                "x": 0.25,
                "y": 0.75
            },
            {
                "x": 0.5,
                "y": 0.75
            }
        ],
        "right_curve": [
            {
                "x": 0.5,
                "y": 0.75
            },
            {
                "x": 0.75,
                "y": 0.75
            },
            {
                "x": 1,
                "y": 0.5
            },
            {
                "x": 1,
                "y": 0
            }
        ],
        "split_point": {
            "x": 0.5,
            "y": 0.75
        }
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:03.574Z",
        "request_id": "649f0ab6-b241-4d68-b87b-4fb33e4ac544"
    },
    "status": "ok",
    "message": "Split curve",
    "success": true
}