PostgREST-like
RPC Search Engine.
Stop writing boiler-plate search controllers. GO-DUCK generates an high-performance, unified RPC layer for deep, transactional querying across your multi-silo empire.
Pure Full-Text Search
Native Elasticsearch engine for sub-millisecond fuzzy matching on millions of records.
Transactional RPC
Dynamic, server-side filtering with ?filter=eq.val directly on your GORM models.
Postgres Arrow Power
Query your JSONB fields using Postgres arrow operators (->, ->>) in your URI.
API Reference & Endpoint Map
| Verb | Endpoint Pattern | Discovery Power |
|---|---|---|
| GET | /api/{entity}s/search?query=keyword | Elite Elasticsearch Fuzzy Search |
| GET | /api/v1/{entity} | List and Search with GORM Filter Logic |
| POST | /api/v1/{entity} | Atomic Primary Write + Saga Multi-Broadcast |
| PATCH | /api/v1/{entity}/{id} | Partial Update (Single Silo or Global) |
| DELETE | /api/v1/{entity}/{id} | Distributed Atomic Deletion |
| POST | /api/v1/{entity}/bulk | Bulk Multi-Silo Transaction |
| GET | /api/admin/audit | Centralized Audit Log Retrieval (SuperAdmin) |
| POST | /management/tenant/assign | Dynamic Tenant DB Provisioning (SuperAdmin) |
Silo Precision: Transactional Isolation
While GO-DUCK defaults to global federation, sometimes you need surgical precision. Our Dual-Path Orchestrator is controlled by your headers.
Federal Broadcast (Default)
Headers: Empty
Writes synchronize to all silos. Reads aggregate data from the entire dealership empire into a single view.
Silo Narrowing (Precision)
X-Tenant-ID: {Opaque-Silo-ID}
Bypasses federation. Reads and writes are isolated to ONLY that specific silo. Perfect for site-specific audits or sensitive data entries.
Industrial Velocity: Bulk Operations
For high-velocity data ingestion, GO-DUCK generates transaction-aware Bulk Endpoints. A single request can mutate thousands of records across your silos.
Endpoint: POST /api/v1/{entity}/bulk
Payload: Array of Objects
[
{ "make": "Tesla", "model": "Model S" },
{ "make": "Lucid", "model": "Air" }
]
Atomic & Federated
Bulk operations are wrapped in a database transaction. If one record fails validation or insertion, the entire batch is rolled back across all Silos.
Dual Retrieval APIs: Flat vs Eager
Every entity exposes two distinct GET endpoints to strictly separate lightweight filtering from heavy relational data fetching.
Single Entity Meta-Filter
A high-performance endpoint strictly for flat, single-entity queries with advanced JPA-style operators. Relationships remain hydrated as IDs.
GET /api/v1/car
Dynamic Join & Eager Loading
A specialized relational endpoint that automatically executes optimized SQL JOINs (or Mongo aggregations) to fetch the entity alongside all its associations.
GET /api/v1/car/eager
Pagination & Dynamic Sorting
List endpoints support pagination and dynamic sorting for both relational (PostgreSQL) and document-based (MongoDB) silos.
Pagination
Specify the page number (1-indexed) and limit size via standard query parameters. The response contains total count in the X-Total-Count header.
GET /api/v1/car?page=1&size=20
Dynamic Sorting
Sort fields dynamically in ascending (default or asc) or descending (desc) order. The sorting format is ?sort=fieldname,direction.
GET /api/v1/car?sort=price,desc