Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we integrate a custom backend instead of performing CRUD operations in the EasyBlock native backend? #85

Open
tring-arunprabu opened this issue Dec 18, 2024 · 0 comments

Comments

@tring-arunprabu
Copy link

As mentioned in the documentation, I overrode the configuration with custom backend calls for performing CRUD operations and used it in the config. While the calls are being made and responses are received, the EasyBlock component is not rendering the data.
export type Backend = {
documents: {
get: (payload: { id: string; locale?: string }) => Promise;
create: (payload: Omit<Document, "id" | "version">) => Promise;
update: (payload: Omit<Document, "type">) => Promise;
};
templates: {
get(payload: { id: string }): Promise;
getAll: () => Promise<UserDefinedTemplate[]>;
create: (payload: {
label: string;
entry: NoCodeComponentEntry;
width?: number;
widthAuto?: boolean;
}) => Promise;
update: (payload: {
id: string;
label: string;
}) => Promise<Omit<UserDefinedTemplate, "entry">>;
delete: (payload: { id: string }) => Promise;
};
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant