Skip to content

luanpotter/spark-todos-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spark-todos-rest-api

Build Status

This is a CRUD REST api for a todo model with two fields: a Long id and a String text (text of the todo).

It uses Spark for the web application framework and Dalesbred for database access. It uses postgres database on dev environment and hsqldb on tests.

Thanks to Despegar.com for providing us with this nice utility for testing Spark applications.

Setup

Run

  mvn clean install

To download all dependencies and such, then start the API with

  mvn exec:java -Dexec.mainClass="xyz.luan.rest.todos.Main"

Alternatively, you can import to Intellij IDEA (via the Import maven project option) and then use the commands from the IDE to run.

About

Simple TODOs REST API using Spark Java

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages