Saturday, September 1, 2018

Auto-Generate a REST API From a Database With Spring

If you have an existing database and you want to write a front-end to work with it, you often find yourself spending hours setting up the glue between the database and the front-end. It would be a much more efficient use of your time if you could simply press a button and generate the entire REST API directly.

Speedment is a tool that uses code generation to produce a tailored domain model based on an existing database structure. Queries can either be sent directly to the database or served from in-memory for better performance. In this article, we will use the official plugin called "spring-generator" for Speedment Free to generate a complete Spring application to serve a simple REST API. We will add support for paging, remote filtering and sorting, without writing a single line of code.



from DZone.com Feed https://ift.tt/2LJ2UFk

No comments:

Post a Comment