This is a REST API with all the CRUD methods for the tables City and State.
Stack: Java, Spring Boot, JPA, Criteria API.
- Java 11
- MySQL
Create an empty database named tryout
First clone the project to your machine using the following command on a terminal:
Then you want to open the root folder:
And finally run the API using the Maven Wrapper:
Swagger UI link: http://localhost:9292/swagger-ui/index.html
Postman predefined requests: https://www.getpostman.com/collections/3d484a115ac63c1799dd
When executing the Maven Wrapper you can receive the following error:
Make sure your JAVA_HOME is set one level above the bin/ folder of your Java installation, otherwise, this error will continue to happen.