> For the complete documentation index, see [llms.txt](https://spark-life.gitbook.io/spring-hexagonal/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spark-life.gitbook.io/spring-hexagonal/generators/hexagonal.md).

# Hexagonal

Code Generator

#### Generate REST API with CRUD operations

You can generate REST API with CRUD operation using the following command:

🔆 You should run the following command from within the generated project folder.

`yo springboot-hexagonal:hexagonal Customer`&#x20;

`Customer will be the name used in DTOs, Mappers and Models`

This will generate:

* JPA entity
* Spring Data JPA Repository
* Service
* Spring MVC REST Controller with CRUD operations
* Unit and Integration Tests for REST Controller
* Flyway migration to create table
