This project ...
- Fork
- Cloning
- DB Setup
- Correr el servidor web
press the button in GitHub page
use the following command
git clone [email protected]:<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: "[email protected]"}'
- 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.