Skip to content

Generate Java classes with REST API routes for each table in a specified database

Notifications You must be signed in to change notification settings

githagman/rest-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

#Generate Java Spark Rest Api Routes From Database

Requires Java 8 and Maven install


###1 Install

Download code from Github

In the root directory

mvn clean install

###2 Configure

Edit the RestGenerator.properties to set connection info, databasename, and package info

Edit the template file to change the resulting generated files

In your MySQL instance, be sure the schema you specified as the databasename is loaded.

###3 Build

mvn package

###4 Run

java -jar package/rest-generator-1.0-SNAPSHOT-jar-with-dependencies.jar

###5 Test

mvn test

About

Generate Java classes with REST API routes for each table in a specified database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages