Join Slack
Powered by
Somebody have worked with KTOR consuming API's wit...
# multiplatform
d
Diego Camilo Peña Ramirez
01/07/2025, 6:51 AM
Somebody have worked with KTOR consuming API's with the same code for mobile, desktop and Web? Thank you
h
hfhbd
01/07/2025, 7:32 AM
Multiplattform is
THE
reason to use Ktor. Just put your code in a shared module or commonMain.
t
Tim Tennant
01/07/2025, 7:45 AM
This section of the docs takes you through a worked example of how to use KTOR to consume an api:
https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-upgrade-app.html
d
Diego Camilo Peña Ramirez
01/07/2025, 7:56 AM
Thank you for your answer, but i have problems with coroutines and desktop and wasm versions it seems that tutorials are only for mobile, i dont know if i need something else
2
Views
Open in Slack
Previous
Next