Simple users API to be used in presentations
It was not a concern to follow best practices
This project uses H2 (embedded), so just run inside IDE and it's ready to use
/users
Create a user
curl -X POST http://localhost:8080/users -H 'Content-Type:application/json' -d '{"name": "User 1", "email": "user1@gmail.com"}' | json_pp
curl -X POST http://localhost:8080/users -H 'Content-Type:application/json' -d '{"name": "User 2", "email": "user2@gmail.com"}' | json_pp
/users
List users
curl -X GET http://localhost:8080/users -H 'Content-Type:application/json' | json_pp
/users/:id
Disable a user
curl -X DELETE http://localhost:8080/users/1