postmanlabs / postmanlabs/postman-code-generators

add pure Java generator

Open
#155 3 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

codegen feature good first issue 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.
Postman comes with a few code generators for HTTP Requests.

For Java devs, there are generators for the Libraries OkHttp and Unirest, but there is no code generator for Java without any libraries

Describe the solution you'd like
A new code generator generating java code (with URLs/HttpURLConnection and HttpsURLConnection).

Additional context
https://docs.oracle.com/javase/8/docs/api/java/net/URL.html
https://docs.oracle.com/javase/8/docs/api/java/net/HttpURLConnection.html
https://docs.oracle.com/javase/8/docs/api/javax/net/ssl/HttpsURLConnection.html

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

Review the existing Java generators for OkHttp and Unirest to understand the repository's generator structure and output expectations. Implement a Java generator using URL, HttpURLConnection, and HttpsURLConnection without external libraries, then verify that it produces valid requests for the relevant Postman inputs.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.