An REST API that allows users to do create, read, save and update Person JSON objects to database.
docker-compose up
Running:
mvn spring-boot:run
Testing:
mvn test
All the request should be made to the root of the server.
To add an person the request should me made to root path:
yoururl/
Update request should me made to persons id path: Example to update person with id 1:
yoururl/1
Example:
{
"name": "Testi",
"address": "Testikatu",
"phoneNumber": "112",
}
Example to find all persons named "Testi":
yoururl/testi
Example:
your_url/
Field | Type | Description |
---|---|---|
name | String | Name of the person |
address | String | Persons address |
phoneNumber | String | Persons phonenumber |