Buscando dados da REST API no Android com requisição HTTP usando Ktor | Kotlin | Koin
Retrieving information from REST APIs is a very common behavior in most Android apps. For this, we use HTTP clients that facilitate this communication. Among the main HTTP client libraries, Ktor is one of the recommendations in the Android documentation (https://developer.android.com/develop..., and it's also the main library if you use KMP. Considering all these details, in this video, I show how to configure the entire communication setup from scratch with Ktor and convert JSON to objects using Kotlinx Serialization. Configuration code ``` val ktorVersion = "2.3.2" implementation("io.ktor:ktor-client-android:$ktorVersion") implementation("io.ktor:ktor-client-logging:$ktorVersion") implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion") implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion") implementation("org.slf4j:slf4j-android:1.7.36") implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0") kotlin("plugin.serialization") version "1.9.10" HttpClient(Android) { install(Logging) { level = LogLevel.ALL } install(ContentNegotiation) { json(Json { ignoreUnknownKeys = true }) } } ``` App repository where it's located - https://github.com/alexfelipe/onde-fica 🔔 New to the channel? Then subscribe, tell me what you thought in the comments and if you liked the content, take the opportunity to leave a like too 😉 You can learn more about me and my work on my social networks LinkedIn - / alex-felipe GitHub - https://github.com/alexfelipe Twitter - / alexfelipi Dev.to - https://dev.to/alexfelipe Medium - / alex.felipe

Configurando a navegação com a BottomAppBar no App Android | Jetpack Compose

Criando API em Kotlin com Ktor | Back-End | REST | HTTP

Aplikasi Lost and Found Integrasi API

Fazendo requisições HTTP em Apps Android com Retrofit | Jetpack Compose

Is This Wish Meant to Be Fulfilled? 🧚🤲 Detailed Pick a Card Tarot Reading ✫・

How to Run AI Models Using Google’s Free GPU

APIs for Beginners - How to use an API (Full Course / Tutorial)

Full Guide to Dependency Injection With Koin for Compose Multiplatform - KMP for Beginners

RETROFIT: O GUIA DEFINITIVO PARA CLIENTE HTTP NO ANDROID

ANDROID EM 2024 - COMO CRIAR UM APLICATIVO DO ZERO EM 1 HORA | JETPACK COMPOSE | APP

Implement a REST API with KTOR and JWT access tokens

No Boss, No Money: The Raw Reality of China’s Gen-Z Freelancers

He texted: Stuck at work. The waiter: He’s sitting at table 4 – with his fiancée.

Setting up screen navigation in Jetpack Compose with Navigation

Kotlin Scope Functions: let, apply, run, with, and also : With Differences

Melhore as requisições HTTP no Flutter com Cache Local!

Configurando requsições de api com Retrofite OKHttp no Android Studio

Como consumir APIs com Retrofit usando Android e Kotlin

The developer's outburst after leaving the field.

