From 72a04b9b9f1570dcb52393a4a7af40909390989e Mon Sep 17 00:00:00 2001 From: Brian Rodriguez Date: Sun, 29 Sep 2024 15:22:40 -0500 Subject: [PATCH] fix: update android roadmap content --- .../content/okhttp@5pVuwOItAhUxxJX8ysAsn.md | 6 +++++- .../content/retro@dDMRYiqrKyOBnRRQc8zsp.md | 15 +++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/data/roadmaps/android/content/okhttp@5pVuwOItAhUxxJX8ysAsn.md b/src/data/roadmaps/android/content/okhttp@5pVuwOItAhUxxJX8ysAsn.md index 94f1d7419..0cb67ebf6 100644 --- a/src/data/roadmaps/android/content/okhttp@5pVuwOItAhUxxJX8ysAsn.md +++ b/src/data/roadmaps/android/content/okhttp@5pVuwOItAhUxxJX8ysAsn.md @@ -1,3 +1,7 @@ # OkHttp -`OkHttp` is an HTTP client that's extremely efficient, enabling several advanced features in Android app or other platforms that use Java. Developed by Square, it's built for high efficiency and capacity, simplifying many networking tasks, including connection pooling, response caching, and request retries. OkHttp allows seamless recovery from network issues, minimizing the loss of data. The library ensures fewer errors and higher quality of service by using the modern TLS encryption, extensible request and response models, and a fluent API for ease of use and integration. \ No newline at end of file +`OkHttp` is an HTTP client that's extremely efficient, enabling several advanced features in Android app or other platforms that use Java. Developed by Square, it's built for high efficiency and capacity, simplifying many networking tasks, including connection pooling, response caching, and request retries. OkHttp allows seamless recovery from network issues, minimizing the loss of data. The library ensures fewer errors and higher quality of service by using the modern TLS encryption, extensible request and response models, and a fluent API for ease of use and integration. + +Visit the following resources to learn more: + +- [@official@Documentation](https://github.com/square/okhttp) diff --git a/src/data/roadmaps/android/content/retro@dDMRYiqrKyOBnRRQc8zsp.md b/src/data/roadmaps/android/content/retro@dDMRYiqrKyOBnRRQc8zsp.md index 68823fe37..b958d687c 100644 --- a/src/data/roadmaps/android/content/retro@dDMRYiqrKyOBnRRQc8zsp.md +++ b/src/data/roadmaps/android/content/retro@dDMRYiqrKyOBnRRQc8zsp.md @@ -1,13 +1,8 @@ # Retrofit -Retrofit is a type-safe HTTP client for Android and Java. It's designed to connect your application with an API or a back-end web service. Retrofit uses annotations to encode details about the API's operations and requests, such as the HTTP method (GET, POST, PUT, DELETE, HEAD) and the query parameters. The main advantage of Retrofit over other similar libraries is in its simplicity and intuitiveness, and it efficiently handles all network calls. -``` -Retrofit retrofit = new Retrofit.Builder() - .baseUrl("https://api.example.com") - .addConverterFactory(GsonConverterFactory.create()) - .build(); +**Retrofit** is a type-safe HTTP client for Android. It's designed to connect your application with an API or a back-end web service. Retrofit uses annotations to encode details about the API's operations and requests, such as the HTTP method (`GET`, `POST`, `PUT`, `DELETE`, `HEAD`) and the query parameters. The main advantage of **Retrofit** over other similar libraries is in its simplicity and intuitiveness, and it efficiently handles all network calls. -ExampleService service = retrofit.create(ExampleService.class); -Call call = service.exampleCall(); -``` -The `baseUrl()` is your API base URL. The `addConverterFactory()` specifies a factory to use for serialization and deserialization. In the example above, the Gson library will handle the conversion of JSON data. The `build()` call finishes the builder and returns the retrofit instance. Finally, `create()` generates an implementation of the `ExampleService` interface. \ No newline at end of file +Visit the following resources to learn more: + +- [@oficial@Documentation](https://square.github.io/retrofit/) +- [@video@Retrofit in Android Studio](https://www.youtube.com/watch?v=KJSBsRKqNwU)