Skip to content

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

@Tring-Arunprabu

Description

@Tring-Arunprabu

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;
};
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions