@metadataui/spec
v1.0.0
Published
Metadata-driven UI contract — types, URL builders, and conventions for HTTP servers describing forms, lists, dropdowns, and actions
Downloads
82
Maintainers
Readme
@metadataui/spec
The metadata-driven UI contract — pure types, URL builders, and the conventions any HTTP server can implement to be auto-rendered by a metadata-driven frontend.
import type { PublicBoMeta, ListParams, FileResponse } from '@metadataui/spec'
import { urlForProjection, buildQueryString } from '@metadataui/spec'URL convention
GET /bo/{name} list
GET /bo/{name}/{paramValue} detail
POST /bo/{name} create
PUT /bo/{name}/{paramValue} update
DELETE /bo/{name}/{paramValue} delete
GET /meta/{name} metadata
GET /bo/{name}/valueHelp/{vh} value help
POST /bo/{name}/{action} custom action
GET /view/{name} read-only view
GET /view/{name}/meta view metadataImplementations
- Server:
@pgbo/fastify— Fastify route factory backed by@pgbo/core - Client:
@metadataui/client— framework-agnostic HTTP client
Other backends (Spring, Go, hand-rolled REST) are valid implementations as long as they conform to this contract.
License
MIT
