
π Ditto just got WAY smarter.
We just shipped two killer features for your mock API toolbox:
π Dynamic responses with {{faker.*}}
π Conditional forwarding based on URL patterns
Here's the breakdown β¬οΈ
1. Dynamic Responses with {{faker.*}}
Now your mock endpoints can feel real.
json
{
"id": 1,
"username": "{{faker.internet.userName}}",
"email": "{{faker.internet.email}}"
}
π§ Powered by Faker.js, this means every request returns unique, lifelike data β great for devs testing pagination, randomness, or edge cases.
2. Conditional Forwarding
Mock only what you need. Forward the rest.
You can now:
Fully mock /api/user/1
Forward /api/* (like /api/user/2, /api/orders) to a real backend
Define priority rules, so Ditto tries mocks first and forwards only if unmatched
π Itβs the best of both worlds: mock what youβre building, and connect to what already exists.
Why it matters:
More realistic dev environments
Less setup time for mocking backends
Better control over your API flows
π§ͺ Try it now at: https://baraklabs.com
π¬ We'd love your feedback β what would make Ditto even better for your workflow?
#ProductHunt #APIs #DeveloperTools #MockServer #Ditto
Replies