Natural language → Production-ready API

Generate Spring Boot APIs
in 30 seconds

Type a plain-English description. Get a complete ZIP with Entity, DTO, Service, Controller, Repository, MapStruct mapper, pagination, error handling, and Docker setup.

Designed for developers who want to move from idea to runnable backend faster — with less repetitive setup and a smoother starting point.

~30s
vs 2–3 hrs manual
8+
layers generated
100%
runnable output
0
install needed
Start Building See what gets generated
checking…
1
Write Prompt
Describe your entities
2
Generate Spec
POST /generator/spec
3
Download ZIP
POST /generator/code
PROMPT
Separate entities with blank lines
 to generate
Ready — write a prompt and click Generate Spec
JSON SPEC
Entities will appear here…
📋
JSON specification will appear here
GENERATED FILES
File tree will appear here…
📁
Generated file tree will appear here
// what gets generated

Everything you'd write by hand — done for you

Every layer of a production Spring Boot 3 API, generated and wired together from a single plain-English prompt.

🏗️
Full Layer Stack
Entity · DTO · Repository · Service · Controller — all wired together, ready to run.
🔗
JPA Relationships
@ManyToOne · @OneToMany · @ManyToMany with join tables, FetchType.LAZY, and cascade.
Bean Validation
@NotNull · @Email · @Min · @Max · @Size — extracted from your prompt automatically.
📄
Pagination & Filtering
JpaSpecificationExecutor + PagedResponse wrapper. Sortable, filterable endpoints.
🗺️
MapStruct Mappers
Generated <Entity>Mapper interface for clean DTO ↔ Entity conversion.
🐳
Docker Ready
Dockerfile + docker-compose.yml with PostgreSQL/MySQL + optional Adminer UI.
🚨
Error Handling
GlobalExceptionHandler · ErrorResponse · ResourceNotFoundException — all pre-wired.
🧪
Test Scaffolding
Generated unit and integration test stubs per entity, ready to fill with logic.
// self-host

Run it your way

Docker, source build, or direct CLI — your choice.

Run locally — three options
# Option 1: Docker (recommended)
docker run -p 8080:8080 ghcr.io/rrezartprebreza/rest-api-generator:latest

# Option 2: Build from source
git clone https://github.com/rrezartprebreza/rest-api-generator
cd rest-api-generator
./gradlew run --args="serve --port 8080"

# Option 3: Generate ZIP directly from a prompt file
./gradlew run --args="generate-zip --file prompt.txt --out scaffold.zip"
unzip scaffold.zip -d my-api && cd my-api && ./gradlew bootRun
From prompt to project, with less friction.

This tool is built to help you spend less time on repetitive scaffolding and more time on domain logic, architecture, and shipping useful features.

Run it locally, self-host it for your team, explore the generated project, and enjoy building.