Skip to content

✨ AI-Powered Bidirectional Conversion: cURL ⇄ Postman Request ⇄ Backend Route (Express, Laravel, Deno…) #13584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
Ge6ben opened this issue May 14, 2025 · 1 comment
Labels

Comments

@Ge6ben
Copy link

Ge6ben commented May 14, 2025

Is there an existing request for this feature?

  • I have searched the existing issues for this feature request and I know that duplicates will be closed

Is your feature request related to a problem?

🚀 Feature Request: AI-Powered Bidirectional API Conversion

Hi Postman team 👋

Thank you for building and maintaining the most beloved tool in the API ecosystem 🙏

I'd love to suggest a powerful AI-driven feature that bridges the gap between Postman requests, cURL commands, and backend routes in various languages/frameworks.


🌐 Core Idea

Allow developers to input any of the following:

  • A raw API URL or cURL command
  • A backend route/controller (Express, Laravel, FastAPI, Deno/Oak, etc.)
  • A Postman request

And have Postman automatically convert between them.

💡 Why Use AI?
• Detects body schema from variable usage
• Infers headers (e.g., JWT, content-type)
• Detects RESTful semantics (/users/:id)
• Converts idiomatic backend code to usable requests

🧑‍💻 Developer Use Cases
• Quickly create backend scaffolding from frontend requests
• Share routes between teams regardless of backend tech
• Turn logs or browser network activity into Postman requests
• Auto-generate code snippets from request collections

🤔 Is This On the Roadmap?

This feature could be a game-changer — especially paired with AI context awareness. Is something like this being considered?

Thanks again for all your incredible work!

May Allah you🙏

Describe the solution you'd like


🔄 Examples

1. Convert cURL → Postman Request (already exist)

curl -X POST https://api.example.com/users \
  -H "Authorization: Bearer TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "Jane Doe", "email": "[email protected]"}'

✅ Converts to a Postman request with:
	•	Method: POST
	•	URL: https://api.example.com/users
	•	Headers: Auth + Content-Type
	•	Body: JSON payload

⸻

2. Convert Postman Request → Backend Route

Choose a backend language (e.g., Deno, Laravel, Express) and generate:

🟢 Express (Node.js)

app.post("/users", (req, res) => {
  const { name, email } = req.body;
  // Your logic here
});

🟡 Laravel (PHP)

Route::post('/users', function (Request $request) {
    $name = $request->input('name');
    $email = $request->input('email');
    // Logic here
});

🔵 Deno (Oak)

router.post("/users", async (ctx) => {
  const { name, email } = await ctx.request.body({ type: "json" }).value;
  // Logic here
});


⸻

3. Convert Backend Route → Postman Request

Paste an Express or Laravel route, and Postman generates the full request setup:
	•	Method
	•	Path
	•	Headers
	•	Dummy body schema

⸻

### Describe alternatives you've considered

_No response_

### Additional context

 
As a full-stack developer working on end-to-end projects, I often find myself switching between different tools just to replicate or generate API routes. That’s what inspired this idea — having these features built into Postman would help developers like us stay in one environment and ship faster.
 
@Ge6ben Ge6ben added the feature label May 14, 2025
@davidespihernandez
Copy link

@Ge6ben We have published the new Postman API MCP server. By using MCP (the Postman API) and a AI agent, you can do all these things and much more. The possibilities are endless!
Please stay tuned to the Postman Community site for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants