pagination
This commit is contained in:
@@ -152,6 +152,8 @@ export async function loadConfigFromOpenApi(baseUrl: string): Promise<AppConfig>
|
|||||||
|
|
||||||
const fields = parseSchemaFields(schema, name, schemaToResourceMap);
|
const fields = parseSchemaFields(schema, name, schemaToResourceMap);
|
||||||
|
|
||||||
|
const resourceOverride = configuration[name] || {};
|
||||||
|
|
||||||
resources.push({
|
resources.push({
|
||||||
name,
|
name,
|
||||||
label: schema.title || label,
|
label: schema.title || label,
|
||||||
@@ -159,6 +161,7 @@ export async function loadConfigFromOpenApi(baseUrl: string): Promise<AppConfig>
|
|||||||
endpoint: listPath,
|
endpoint: listPath,
|
||||||
primaryKey: "id", // Strict default, no heuristics
|
primaryKey: "id", // Strict default, no heuristics
|
||||||
fields,
|
fields,
|
||||||
|
pagination: resourceOverride.pagination,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user