Implement the versioned Api HTTP client #26

Open
opened 2026-07-01 01:05:15 +00:00 by manlycucumber · 0 comments
manlycucumber commented 2026-07-01 01:05:15 +00:00 (Migrated from github.com)

Problem

The plugin needs a single, well-tested client to talk to the Introibo Api /v1 endpoints using the WordPress HTTP API, with a configurable base URL and sensible timeouts.

Acceptance criteria

  • A client class wraps day and calendar Api requests using the WordPress HTTP API.
  • The Api base URL and timeout are configurable via settings with safe defaults.
  • Non-2xx responses are normalized into typed error results, never fatals.
  • All requests send the negotiated API version path segment (/v1).

Notes

Mirror the response shape the v0.1.0 REST endpoint produced so surfaces need minimal change.

## Problem The plugin needs a single, well-tested client to talk to the Introibo Api /v1 endpoints using the WordPress HTTP API, with a configurable base URL and sensible timeouts. ## Acceptance criteria - [ ] A client class wraps day and calendar Api requests using the WordPress HTTP API. - [ ] The Api base URL and timeout are configurable via settings with safe defaults. - [ ] Non-2xx responses are normalized into typed error results, never fatals. - [ ] All requests send the negotiated API version path segment (/v1). ## Notes Mirror the response shape the v0.1.0 REST endpoint produced so surfaces need minimal change.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Directorium/Ordo#26
No description provided.