Resource Config
Resource-level keys identify rows, endpoints, provider behavior, and nested resources.
Identity
Type: FluiKitIdentityConfig.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
key | string | No | "id" | Row property used as identity. |
param | string | No | "id" | Endpoint placeholder name. |
TS
identity: {
key: "id",
param: "id"
}Endpoints
Type: FluiKitEndpointConfig.
An endpoint can be a string or an operation map.
TS
endpoint: "/api/users"TS
endpoint: {
list: { url: "/api/users", method: "GET" },
create: { url: "/api/users", method: "POST" },
update: { url: "/api/users/:id", method: "PATCH" },
delete: { url: "/api/users/:id", method: "DELETE" }
}Provider
Type: FluiKitDataProviderConfig. See Provider Config for the full property table (type, name, query) and resolution order.
TS
provider: {
type: "rest"
}Use a named provider when the provider is registered through FluiKitProvider.
TS
provider: {
name: "adminApi"
}Multi-resource
Use resources for related schemas on one screen.
TS
resources: [
productsSchema,
categoriesSchema
]