![Avoid exposing JPA entities in REST API, Instead generate client beans using OpenAPI Generator and map them to entities using MapStruct. | by Ravinder Thirumala | Medium Avoid exposing JPA entities in REST API, Instead generate client beans using OpenAPI Generator and map them to entities using MapStruct. | by Ravinder Thirumala | Medium](https://miro.medium.com/max/1400/1*FgZvsZp9vvpACDKFPTfN6w.jpeg)
Avoid exposing JPA entities in REST API, Instead generate client beans using OpenAPI Generator and map them to entities using MapStruct. | by Ravinder Thirumala | Medium
GitHub - OpenAPITools/openapi-generator: OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
![Contract-First API Development with OpenAPI Generator and Connexion | by Anıl Can Aydın | Commencis | Medium Contract-First API Development with OpenAPI Generator and Connexion | by Anıl Can Aydın | Commencis | Medium](https://miro.medium.com/max/1400/1*MrORw0GwRSpjKSM5-f86Mw.png)