Skeleton for web applications using java server
- Maven
- Jersey
- Jetty
- Jackson
- JDBI
- SQlite (for the moment)
hostname: {host}:{port}
application path: /rest
- GET / return all users
- GET /login return the user with the same login if exists
- POST / create a user if he doesn't already exist
- POST /login same as GET /login with password encryption
- PUT /login modify a user if exists
- DELETE /login delete a user if exists
example: http://localhost:8080/rest/users/LordRski
servlet path: can be everything, check urlPatterns in servlet classes.
example: http://localhost:8080/helloworld