Default in-memory DB:
java -jar assignment-0.0.1-SNAPSHOT.jar
File-based DB ('./local-database'):
java -jar -Dspring.profiles.active=file-based-h2 assignment-0.0.1-SNAPSHOT.jar
curl --location --request POST 'localhost:8080/productie-installatie' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "My installation",
"contact": 123,
"outputPower": 0.123
}
'
curl --location --request GET 'localhost:8080/productie-installatie'
curl --location --request GET 'localhost:8080/productie-installatie?name=My%20installation'
url --location --request GET 'localhost:8080/productie-installatie?minOutputPower=10.2225&maxOutputPower=5896.0001'
curl --location --request POST 'localhost:8080/contact-persoon' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "My installation",
"zipCode": "0000AA",
"city": "Arnhem",
"number": "12a"
}
'
curl --location --request GET 'localhost:8080/contact-persoon'
curl --location --request GET 'localhost:8080/contact-persoon?name=My%20installation'