Open your preferred IDEA:
- Maven will download the dependencies
- Open the ManagementPeopleSystemApplication class by clicking on the Run option
- Or if you have Maven installed, you can use the command: mvn spring-boot:run on your console
You can use Insomnia or Postman to check the endpoints
- First you have to create a new user in the route http://localhost:8080/users using the method POST
- Feel free to browse other endpoints like:
- Find all persons http://localhost:8080/users
- Find user by id http://localhost:8080/users/{id}
- Find user by CPF http://localhost:8080/users/cpf/{cpf}
- Find all user by city http://localhost:8080/users/city/{city}
- Find all user by state http://localhost:8080/users/state/{state}
- Update user by id http://localhost:8080/users/{id}
- Delete user by id http://localhost:8080/users/{id}
- Find all address http://localhost:8080/address
- Find an address by id http://localhost:8080/address/{id}