This cookbook groups broader native endpoint examples in one generated app. The
.gwdk files declare endpoint metadata and forms; src/endpoints/handlers.go
owns request behavior, validation, redirects, JSON, and fragments in normal Go.
Run from this directory:
make check
make routes
make build
GOWDK_CSRF_SECRET=development-endpoints-csrf-secret-32b GOWDK_ADDR=127.0.0.1:8093 bin/endpoints
Pages
Page
Demonstrates
contact.page.gwdk
Contact action redirect plus inline validation fragment response.
APIs: Session, Search, ListItems, CreateItem, UpdateItem,
DeleteItem, and DeployWebhook.
Standalone fragments: InlineValidation, InventoryRow, InventoryList,
ModalBody, and DashboardCard.
Current Limits
Generated typed API handlers own query and JSON-body decoding for supported
scalar struct fields. Handlers still own domain validation, authentication,
authorization, persistence, and any raw request/header handling.
Action generated validation covers direct literal form constraints; domain
validation remains in src/endpoints/handlers.go.
Multipart action uploads enforce generated request/file limits, but storage,
scanning, and persistence remain user-owned Go behavior.
Fragment hooks and static fragment bodies are HTML strings today; richer
typed fragment render helpers are still planned.