Skip to content

Simple example of programmatic implementation of HAL in RESTful service using http://sparkjava.com/

Notifications You must be signed in to change notification settings

omarlarus/hal-rest-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

hal-rest-example

Simple example of programmatic implementation of HAL in RESTful service using SparkJava.

This is not a real (nowadays) implementation but only mock GET API, a SparkJava example and a "good RESTful" design approach.

Usage

mvn package

mvn exec:java -Dexec.mainClass="it.larus.assess.restspark.Application"

curl -v -H "Accept: application/json" http://localhost:8080/report/user/all/timesheet/2016

curl -v -H "Accept: application/json" http://localhost:8080/report/user/all/timesheet/2016/11

curl -v -H "Accept: application/json" http://localhost:8080/report/user/123/timesheet/2016/11

About

Simple example of programmatic implementation of HAL in RESTful service using http://sparkjava.com/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages