This PoC (Proof of Concept) uses Spring Cloud OpenFeign to make a REST calls to an API and to explore Lib's functions.
Click here for view article in Medium.
- Java 17
- Spring Boot 2.6.7
- Spring Cloud OpenFeign
- Lombok
- SpringFox 3.0.0
- Gson 2.9.0
- Static Code Analysis: SonarCloud
- Maven
- Build and Test Java with Maven (branch master)
- Analyze SonarCloud (branch master)
- Publish on GitHub Packages (tag/release)
http://localhost:8080/poc/swagger-ui/index.html#/
- GET Busca CEP:
curl --location --request GET 'localhost:8080/poc/busca-cep/01001000'
- POST criar Post:
curl --location --request POST 'localhost:8080/poc/criar-post' \
--header 'Content-Type: application/json' \
--data-raw '{
"title": "foo",
"body": "bar",
"userId": 1
}'