spring.datasource.username={your_database_username}
spring.datasource.password={your_database_password}
url : /
response :
{
"patients": [
{
"id": 2,
"firstName": "Jovi",
"lastName": "Petra",
"dateOfBirth": "1997-01-01",
"gender": "MALE",
"address": {
"address": "123 Main St",
"suburb": "Suburb",
"state": "Tangerang",
"postcode": "12345"
},
"phoneNumber": "123-456-555"
},
{
"id": 3,
"firstName": "Abraham",
"lastName": "Alexander Mannuel",
"dateOfBirth": "1990-12-01",
"gender": "MALE",
"address": {
"address": "123 Main St",
"suburb": "BSD",
"state": "Tangerang",
"postcode": "150150"
},
"phoneNumber": "0896-288-100"
},
{
"id": 6,
"firstName": "Abraham",
"lastName": "Alexander",
"dateOfBirth": "1990-12-01",
"gender": "MALE",
"address": {
"address": "123 Main St",
"suburb": "BSD",
"state": "Tangerang",
"postcode": "150150"
},
"phoneNumber": "0896-288-100"
}
],
"totalPages": 2
}
url : /:id
response :
{
"id": 2,
"firstName": "Jovi",
"lastName": "Petra",
"dateOfBirth": "1997-01-01",
"gender": "MALE",
"address": {
"address": "123 Main St",
"suburb": "Suburb",
"state": "Tangerang",
"postcode": "12345"
},
"phoneNumber": "123-456-555"
}
url : /
request body :
{
"firstName": "Jovi",
"lastName": "Petra",
"dateOfBirth": "1997-01-01",
"gender": "MALE",
"address": {
"address": "123 Main St",
"suburb": "Suburb",
"state": "Tangerang",
"postcode": "12345"
},
"phoneNumber": "123-456-555"
}
response :
{
"id": 2,
"firstName": "Jovi",
"lastName": "Petra",
"dateOfBirth": "1997-01-01",
"gender": "MALE",
"address": {
"address": "123 Main St",
"suburb": "Suburb",
"state": "Tangerang",
"postcode": "12345"
},
"phoneNumber": "123-456-555"
}
url : /:id
response : 204 No Content