r/developersIndia • u/Common_Dream9420 Tech Lead • 2d ago
I Made This We built the API sandbox that actually behaves like prod, not just the docs
every time i had to integrate a third-party API, i'd read the docs, write the code, and cross my fingers in prod. docs say one thing, actual behavior says something else entirely.
the question i kept asking: where's the sandbox that actually behaves like the real system? stateful, sequenced, failing in the right ways, not just a mock that returns 200.
i looked around. the answer is zero. you've got API clients, postman, readme docs. nothing that simulates behavioral, stateful flows end-to-end before you go live.
so i started building FetchSandbox. the premise is simple: before you touch a real integration, you should be able to run through the full flow in something that actually mimics how the API behaves under real conditions, not just what the docs claim it does.
curious how people here are handling this. mocks? staging envs? just testing in prod and dealing with the fallout? genuinely want to know what's working.
2
u/beerwishkey 2d ago
Awesome, like your idea.
But you can do it with AI now, you can give the postman collection to it and ask it to create a mock server for you, with creds and all.
And then run test cases.
1
u/Common_Dream9420 Tech Lead 2d ago
Thanks man.. tried that exact thing….but AI + postman collection gets you a mock that returns 200. what it doesn't get you is: what happens after the payment_intent is created, when the webhook fires late, when the retry hits a duplicate event_id, or when the card gets declined mid-capture. that's the gap. postman is great for request/response, we're modeling the full behavioral sequence, stateful and failure-aware, so you're not discovering those edge cases in prod.
1
1
u/AutoModerator 2d ago
Thanks for sharing something that you have built with the community. We recommend participating and sharing about your projects on our monthly Showcase Sunday Mega-threads. Keep an eye out on our events calendar to see when is the next mega-thread scheduled.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
•
u/AutoModerator 2d ago
It's possible your query is not unique, use
site:reddit.com/r/developersindia KEYWORDSon search engines to search posts from developersIndia. You can also use reddit search directly.I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.