API Only Pattern
The API only pattern suits teams that want full control over their own application flow, user interface, and server-side orchestration.
Typical sequence
- Authenticate using the confirmed Capricorn mechanism.
- Create or query the required domain resource.
- Capture downstream events and reconcile responses.
- Apply retry, idempotency, and audit controls as confirmed.
Illustrative sequence table
| Step | Example action | Capricorn-specific detail |
|---|---|---|
| Authenticate | Request access token | [TO BE CONFIRMED] |
| Submit request | Send JSON payload to domain endpoint | [TO BE CONFIRMED - base URL and path] |
| Handle response | Persist identifiers, statuses, and errors | [TO BE CONFIRMED - status model] |
| Reconcile | Poll or receive event updates | [TO BE CONFIRMED - reconciliation approach] |
{
"example": "illustrative-request-only",
"note": "Replace with confirmed Capricorn schema when available"
}
Delivery considerations
- Validate idempotency rules once published.
- Confirm retry windows and rate limits.
- Capture correlation identifiers for support.
- Ensure observability aligns with Capricorn support expectations.