UNPKG

leds-spark-lib

Version:

Biblioteca de geração de código

34 lines 1.16 kB
/** * Module API Generator * * This module generates API integration files for each entity in the project. * It creates a complete set of CRUD operations with proper TypeScript types * and Axios-based HTTP client integration. * * Features: * - Full CRUD operation coverage * - Type-safe API responses * - Base URL configuration * - Error handling setup * - Admin API integration */ import SEON from "seon-lib-implementation"; /** * Generates API integration file for a specific class * * Creates a TypeScript file containing all CRUD operations * for interacting with the backend API for this entity. * * @param project_abstraction - Project metadata * @param cls - Class for which to generate API functions * @param target_folder - Directory where API file will be saved * * Generated Operations: * - List entities (GET /) * - Create entity (POST /) * - Get single entity (GET /{id}) * - Update entity (PUT /{id}) * - Delete entity (DELETE /{id}) */ export declare function generate(project_abstraction: SEON.ProjectAbstraction, cls: SEON.ClassAbstraction, target_folder: string): void; //# sourceMappingURL=generate.d.ts.map