[Core] Open-WebUI-API-Client: HTTP-Grundlage & Endpoint-Bindings #7
Labels
No labels
auto-merge
bug
chore
dependency
duplicate
enhancement
upstream-sync
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
OpenCode/Arachne#7
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Blockiert von: #1 (Sprache), #3 (Endpoint-Registry), #5 (Gerüst)
Kontext: Das Herzstück des Core: ein HTTP-Client, der alle Open-WebUI-Endpoints anspricht. Vorbild-Quelle: Conduit (GPL-3.0) und die Open-WebUI-Referenzdoku (
docs.openwebui.com/reference/api-flow/).Aufgabe:
Abnahme:
Ergebnis
HTTP-Client-Foundation gemerged (PR #35, Commit
f5b9d3c):crates/core/src/endpoints.rs— Endpoint-Registry als Code:EndpointId-Enum mit 19 stabilen IDs (Methode + Pfad-Template +{id}-Substitution), Code-Spiegel der Registry aus #3.crates/core/src/http.rs—OwuiClient: Base-URL-Normalisierung (Scheme-Check, Embedded-Credentials-Verbot, Query/Fragment-Strip, Trailing-Slash), Bearer-Injection (JWT/API-Key austauschbar), 30s Default-Timeout, Klassifizierung ins ApiError-Modell mit Raw-Body-Preservation für API-Drift.Credentialsmit manuellemDebug-Impl (redacted),send()loggt nur URL + Credential-Art, nie den Secret.Checks: 20/20 Tests grün (13 neu, wiremock, headless), clippy
-D warnings✅, fmt ✅.