UNPKG

khatavani-client

Version:

The Backend-Api-Integration package simplifies interaction with the backend API by providing a set of CRUD methods for common endpoints. It abstracts away the complexity of making HTTP requests and handling responses, allowing developers to focus on appli

14 lines (13 loc) 957 B
export declare const PUT_METHOD = "PUT"; export declare class CRUDMethods { private endpoint; private serverUrl; constructor(endpoint: string); create(accessToken: string, khID?: string | null, body?: any | null, options?: any | null): Promise<any>; get(accessToken: string, khID?: string | null, body?: any | null, options?: any | null, pageParam?: number): Promise<any>; getAll(accessToken: string, khID?: string | null, body?: any | null, options?: any | null): Promise<any>; getOne(accessToken: string, khID: string | null | undefined, id: string): Promise<any>; put(accessToken: string, khID: string | null | undefined, body: any, id: string, options?: any | null): Promise<any>; patch(accessToken: string, khID: string | null | undefined, body: any, id: string, options?: any | null): Promise<any>; delete(accessToken: string, khID: string | null | undefined, id: string, options?: any | null): Promise<any>; }