Module generative_schema

Module generative_schema 

Source
Expand description

Generative Schema Mode - Complete API ecosystem generation from JSON examples

This module provides functionality to generate entire API ecosystems from a few example JSON payloads. It automatically infers entity structures, routes, and relationships, creating a complete mock API ready for deployment.

§Features

  • JSON → API Ecosystem: Generate complete APIs from JSON payloads
  • Auto-Route Generation: Realistic CRUD mapping with proper HTTP methods
  • Entity Relation Inference: Automatically detect relationships between entities
  • One-Click Environment Creation: Generate and deploy in one command
  • Preview/Edit Support: Review and modify generated schemas before deployment
  • Configurable Naming: Custom naming and pluralization rules
  • Reversibility: Regenerate schema from modified data

Re-exports§

pub use ecosystem_generator::EcosystemGenerationResult;
pub use ecosystem_generator::EcosystemGenerator;
pub use ecosystem_generator::GenerationOptions;
pub use entity_inference::EntityDefinition;
pub use entity_inference::EntityInference;
pub use entity_inference::RelationshipType;
pub use naming_rules::NamingRules;
pub use naming_rules::PluralizationRule;
pub use route_generator::CrudOperation;
pub use route_generator::RouteDefinition;
pub use route_generator::RouteGenerator;
pub use schema_builder::SchemaBuilder;
pub use schema_builder::SchemaPreview;

Modules§

ecosystem_generator
Ecosystem generator - Main entry point
entity_inference
Entity inference from JSON payloads
naming_rules
Naming and pluralization rules for generative schema mode
route_generator
Route generation for CRUD operations
schema_builder
Schema builder for preview and editing