A CEP API based on "Java: consumindo API, gravando arquivos e lidando com erros"
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 ...).
- JAVA 17
- GSON
https://github.com/Twistywasabi/alura_CEPAPI/tree/main/src
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
30/09/2024 >>> First version of app
- 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".