Summary
The project is a REST API with CRUD functionality for the person and address objects. Where the relationship works like many addresses for one person.
The API also has validation for duplicate email and CPF and use H2 Database was used for data persistence.
The technologies used in this project were:
JDK 17, Maven and Git
1- Clone this repository.
git clone https://github.com/felype-carvalho/spring-api-crud.git
2- Access the project folder in your terminal/cmd.
cd spring-api-crud/crud-spring-api
3- Run the application with Maven.
mvn spring-boot:run
4- Open http://localhost:8080/
in the browser and watch the project run.
This installation method works without installing Maven.
1- Clone this repository.
git clone https://github.com/felype-carvalho/spring-api-crud.git
2- Access the project folder in your Java IDE.
3- Run CrudSpringApiApplication.java file.
4- Open http://localhost:8080/
in the browser and watch the project run.
This project was created using Swagger to generate the API documentation. With the project running, you can access the documentation at the links below:
http://localhost:8080/swagger-ui/index.html
http://localhost:8080/swagger-ui
Distributed under the MIT license. See LICENSE
for more information.