ProxymanApp / ProxymanApp/Proxyman
create if not existing option on map local directory
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 7k
- Forks
- 237
- PR merge metrics
- No merged PRs in 30d
Description
Description
when using the map local directory, especially with a wildcard query, I'd like to have an option that would make proxyman create the local json files if they don't exist instead of requesting to the upstream all the time
Why this feature/change is important?
I'm working on a service that on init fetches data from multiple sources, this can sometimes take too much, and I don't want to deal with this stuff when developing, so I'm trying to get proxyman to basically cache those requests on my local filesystem, to always have fast boot when developing, and also so I can edit those payloads every now and then to modify the response
the map local file feature works amazingly for this, but if the url is a bit dynamic the feature is suboptimal, as I either need to manually map every url to its own file, or all of them would reuse the same file
the map local directory feature seems to be the closest to what I want, but there's not an option to create the files if they don't exist, and I can't really create them manually because of the same reason mentioned earlier
I tried to achieve this using scripting but I don't think I can, because the available hooks only allow me to modify the request or the response, but if I modify the response, the request would have already happened, which defeats the purpose of this (please correct me if I'm wrong, I might have not understood this correctly)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository files or tests are named. Start by locating the map local directory feature and its wildcard handling; done means an option can create missing local JSON files instead of requesting upstream, while preserving existing mapping behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- json, macos
- Domain
- desktop, networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100