/alura_CEPAPI

A CEP API based on "Java: consumindo API, gravando arquivos e lidando com erros"

Primary LanguageJava

CEP API 🚩

A CEP API based on "Java: consumindo API, gravando arquivos e lidando com erros"

Objective 📜

Create a CEP API; a CEP is a brazillian ZIP CODE composed by eight number (01234-567 for example), where the user inputs a certain CEP and return the respective address information (street, city, state ...).

Technologies and Tools 👨‍💻

  • JAVA 17
  • GSON

Result 🎁

https://github.com/Twistywasabi/alura_CEPAPI/tree/main/src

References 📚

https://viacep.com.br/

https://docs.oracle.com/en/java/javase/17/docs/api/java.net.http/java/net/http/HttpRequest.html

https://docs.oracle.com/en/java/javase/17/docs/api/java.net.http/java/net/http/HttpResponse.html

https://mvnrepository.com/artifact/com.google.code.gson/gson

Updates 🕐

30/09/2024 >>> First version of app

Pending issues 🚨

  • Use some JAVA Records to consume the ViaCEP API and create JSON files without using the same key name from API; for example, instead of "estado", use "state".