postmanlabs / postmanlabs/postman-code-generators

Add Support for Kotlin Ktor code gen

Open
#489 2 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

codegen new-language-support
Dominant language
JavaScript
Stars
1k
Forks
381
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.

Kotlin the rising star in the Multiplatform sky needs to be part of Postman. Beside Android development the usage of Kotlin as primary programming language increases every day. More and more developers use Kotlin for backend or even Multiplatform software (Web, iOS, Native, Desktop etc.)
For this particular mission we should add Kotlin Ktor code generator.

Describe the solution you'd like

Similar to the current java okhttp code generator I would like to see a code generator for Kotlin Ktor.

Additional context

For better understanding whats the current state of the Kotlin ecosystem look here:

Kotlin Website
Ktor Website
Ktor Client Documentation

The Ktor HTTP client can be used in multiplatform projects and supports the following platforms:

JVM
Android
JavaScript
Native (iOS and desktop, including linuxX64, macosX64, mingwX64)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining the existing Java OkHttp code generator and the Ktor Client documentation linked in the issue. Determine how a Kotlin Ktor generator fits the repository's generator structure and supported targets. Done means adding a working generator that produces valid Ktor client code for the relevant request examples and integrating it with the existing generator set.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.