postmanlabs / postmanlabs/postman-code-generators
add pure Java generator
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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