Quicker UI support for multiple responses on the same route
- Dominant language
- JavaScript
- Stars
- 1.6k
- Forks
- 78
- PR merge metrics
- No merged PRs in 30d
Description
What you did:
Installed it and have started playing around with it... this is *awesome*, thank you so much for developing it and putting it out there!
Problem description:
There are times when I want the same route to respond with a different payload. For example, suppose testing how a collection/list of objects displays with attributes set differently / no objects / one / many, etc. It would be neat to have this be supported really well.
Suggested solution:
1. Add a 'Duplicate' button in line with 'Edit' and 'Delete' on the index page - this will make it easier to add the same route information over again.
2. Have the 'Disable Route' checkbox available on the front page.
With these two additions to the UI the process of having responses on the same endpoint would be quicker. A step further would be perhaps grouping together entries that target the same path in the listing.

I literally have an item on my whiteboard 'Quick API for testing' that this just solved, thank you so much. Found it via the HN post =)
Contributor guide
Research direction
Start at the index page and front page UI described in the issue, locating the existing Edit, Delete, and Disable Route controls. Implement the requested Duplicate action and front-page checkbox so multiple responses can be configured for one route, then verify that the UI supports different payload entries for the same endpoint.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100