Skip to content

Codegen API Reference

API reference for the Code Generation module.

Project Generation

Generate Project

POST /api/generate

Generates a new API project based on the provided configuration.

Request Body:

json
{
  "sql": "CREATE TABLE users...",
  "language": "java-spring",
  "features": ["jwt", "docker"]
}

Response: Binary stream (ZIP file).

Validation

Validate Schema

POST /api/validate

Validates SQL schema or OpenAPI spec without generating code.

Preview

Preview Code

POST /api/preview

Returns a preview of the generated code files (JSON).

Released under the MIT License.