⚡
SQL to API
Generate complete REST APIs from your database schema. Supports 12+ languages including Java, Kotlin, Python, TypeScript, Go, and Rust.
Generate production-ready REST APIs from SQL schemas in minutes
// Define your entity
@Entity
@Audited
public class Product extends AuditableEntity {
@Id @GeneratedValue
private Long id;
private String name;
private BigDecimal price;
}
// Create controller - CRUD is automatic
@RestController
@RequestMapping("/api/products")
public class ProductController extends CrudController<Product, Long> {
// Endpoints included:
// GET /api/products - List with pagination
// GET /api/products/{id} - Get by ID
// POST /api/products - Create
// PUT /api/products/{id} - Update
// DELETE /api/products/{id} - Soft delete
}# Or generate from SQL
./gradlew :generator:cli:run --args="generate \
--input schema.sql \
--language java-spring \
--output ./generated"| Language | Framework | Status |
|---|---|---|
| Java | Spring Boot 4.x | ✅ Production |
| Java | Quarkus | ✅ Production |
| Kotlin | Spring Boot | ✅ Production |
| Python | FastAPI | ✅ Production |
| Python | Django REST | ✅ Production |
| TypeScript | NestJS | ✅ Production |
| TypeScript | Express | ✅ Production |
| C# | ASP.NET Core | ✅ Production |
| Go | Chi | ✅ Production |
| Go | Gin | ✅ Production |
| PHP | Laravel | ✅ Production |
| Rust | Axum | ✅ Production |
apigen/
├── libs/ # Core libraries
│ ├── core # CRUD, auditing, caching
│ ├── security # JWT, OAuth2
│ └── exceptions # RFC 7807 errors
│
├── generator/ # Code generation
│ ├── codegen # Multi-language engine
│ ├── server # REST API for generation
│ └── cli # Command-line interface
│
├── features/ # Advanced features
│ ├── graphql # GraphQL layer
│ ├── grpc # gRPC services
│ ├── gateway # API Gateway
│ └── ... # 11 more modules
│
└── mcp/ # AI Integration
├── java # Native MCP server
└── python # Python MCP wrapper