postmanlabs / postmanlabs/postman-code-generators

Custom generation through template literals

Open
#516 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

It would be really nice to be able to generate code of any kind through template literals or something similar.
This is useful for example when creating endpoints for severside APIs where Postman is used to design the API itself.

Currently i have a makeshift code generator in JS to generate special code through generated HTTP (see image below).
codegen

But this has limitations. For example path parameters are not provided here.

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 the repository's existing JavaScript code-generator implementations and how generated HTTP requests are represented. Define the template-literal or equivalent API, including how path parameters are supplied, then establish expected generated output and coverage before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, postman
Domain
api, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.