A collection of examples for Java based micro web frameworks
Java JavaScript CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
todomvc-static-content
.gitignore
README.adoc
create.sql
pom.xml

README.adoc

Micro Java

A showcase collection of simple java based projects. The projects are server-side (backend) implementation for TodoMVC example - the Backbone implementation.

The project is a showcase code for my JEE development without a hassle talk, where I cover multiple lightweight alternatives to traditional fully blow application stacks.

The project is a bit inspired by James Hughes project which I participated in, though with slightly changed rules:

  • Focuses purely on Java frameworks

  • Each example is backed with a database (MySQL)

  • Database connection is indended to be as lightweight as the web stack itself

API

Application API confronts following endpoints:

Method URL Description

GET

/todos

Returns JSON of all todos

POST

/todos

Accepts JSON encoded body returns created Todo (e.g. with the ID field populated) or Invalid response (400 Status Code) with validation errors

PUT

/todos/[id]

Accepts a JSON encoded body of a Todo and the Todo with an [id] will be updated. If [id] does not exist a 404 is returned

DELETE

/todos/[id]

Deletes Todo with [id]