OpenAPITools / OpenAPITools/openapi-generator

[REQ] Add a generator for the Jetbrains HTTP Client

Open
#14,480 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

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

There is currently not support for the Jetbrains HTTP Client in OpenApi.
With the newly released Jetbrains HTTP Client CLI, I believe this generator can be useful to quickly generate full testing landscape for project APIs, and potentially include them as part of automated CI as well.

I'd like to add it and have created a first PR here : #14477. I intend to own that generator in the future.

Current support is pretty basic. For a given OpenAPI file, the current generator creates a HTTP request for each endpoint, with variable parameters where necessary. It also supports Content-Type headers.
You can find a list of features that I want to add in the longer run over here.

For the 3.0 Petstore, you can find the generated README as well as one of the generated API Files.

Describe the solution you'd like

There is a way to generate HTTP Endpoints definition for the Jetbrains HTTP Client.

Describe alternatives you've considered

I don't think there is any at the moment? Either have IntelliJ generate them for you or use something else :)

Additional context

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 reviewing PR #14477 and the generated Petstore files: samples/client/petstore/jetbrains/http/client/README.md and Apis/PetApi.http. Compare the current generated endpoint requests, variable parameters, and Content-Type handling with the requested JetBrains HTTP Client support. Done means the generator is integrated and its generated output covers the agreed feature scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.