Skip to content

lopez83/spark-ormlite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple RESTful API Spark and ORMLite

Simple RESTful API using Spark framework and ORMLite in the persistence layer.

Start the application

  • Create DB and users table: execute resources/schema.sql

  • Set desired database parameters in db.properties file

  • Run Main.java, this will start the server in port 4567

To create a new user:

curl -X POST http://localhost:4567/users?username=oscar&email=oscar@mail.com

Get user with ID = 1:

curl -X GET http://localhost:4567/users/1

Get list of users:

curl -X GET http://localhost:4567/users

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages