very simple API for brazilian individuals
- Java Spring Boot project (using necessary modules):
- REST API;
- PessoaFísica/Customer CRUD (id, nome/name, CPF, dataNascimento/birthDate);
- CRUD must have API GET, POST, DELETE, PATCH and PUT.
- The GET API must accept "query strings" to search for customers by CPF and name;
- Client response should be paged;
- The customer has the age calculated considering the date of birth;
- At the root of the project, there must be a Postman to assess the api.
- Maven;
- Spring Boot modules:
RepositoryRestResource
,AutoConfigureRestDocs
; - Unit tests (API) using
junit
andrestassured
(restassured.io); - The application
,
and
can be found in
target/site
(generated viamvn site: site
); Postman
tests are generated viaSpring Docs
and converted toPostman
viarestdocs-to-postman
;- The tests are run via
newman
in arun-postman-tests.sh
shell script.
bash generate-artifact.sh
or
mvn clean site
bash run-postman-tests.sh