This project ...
press the button in GitHub page
use the following command
git clone git@github.com:<YOUR-USER>/triviavet.git
To create table
mvn db-migrator:create
cp {basedir}/src/main/resources/database.properties.example {basedir}/src/main/resources/database.properties
and use your own secret credentials
Use ./run.sh
script
mvn checkstyle:check
List Users
curl http://localhost:4567/users
List User
curl http://localhost:4567/users/1
Create User
curl -X POST http://localhost:4567/users \
-H 'content-type: application/json' \
-d '{"firstName":"John", "lastName": "Doe", email: "john@doe.com"}'
Update User
curl -X PUT http://localhost:4567/users/1 \
-H 'content-type: application/json' \
-d '{"firstName":"Michael"}'
This project is licensed under the MIT License - see the LICENSE.md file for details.