ktorio / ktor

Framework for quickly creating connected applications in Kotlin with minimal effort
https://ktor.io
Apache License 2.0
13.09k stars 1.07k forks source link

ktor-locations for (multiplatform) clients. #1304

Open saschpe opened 5 years ago

saschpe commented 5 years ago

Subsystem Locations

Is your feature request related to a problem? Please describe. When writing a multiplatform frontend (i.e. Android, iOS) using ktor-client, one has to use strings for get() / update() / delete() calls to a (Ktor-based) backend. This is tedious and error-prone and replicates what had to tbe done for the backend.

Describe the solution you'd like ktor-locations is available for clients as well and can be used in multiplatform projects.

Motivation to include to ktor Clients using ktor-client would benefit from using the same type-safe API path types that can be used for backends. This would increase code re-use and allows for easier refactoring.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity.

CodemonkeyOSS commented 4 years ago

@e5l what's needed here? I can try and take this on.

cy6erGn0m commented 4 years ago

Well, we are going to migrate it to kotlinx.serialization in server and then make it MPP. These are two first step. After that we may try to migrate it to client as well

oleg-larshin commented 4 years ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.