Comments (2)
Hi @cfirminofaria,
Thanks for your proposal, I'll have a look at it and see if we can add it.
from core.
Thanks for the quick response, looking forward to having this suggestion applied.
Besides receiving the current HTTP request, the current Mock and MockResponse and the interpolated chunk, the callback could also receive the current variables:
const _variables: any = this.state.getVariables(params.id);
This would allow the callback to also use variables set by the dev interface or by one of the plugins.
from core.
Related Issues (20)
- Body matching with regex not working when migrating from old ng-apimock HOT 10
- Mock response variable not replaced when defined in "file" HOT 3
- Support urlencoded and text content types
- Regression when updating from 3.2 to 3.11
- Match on partial body in mock
- Support inheritance for mocks
- Show (Error) logging HOT 2
- Interpolation does not work when providing data from a file HOT 1
- Logging Error > ENOENT: no such file or directory HOT 8
- Preset with scenario Passthrough does not work HOT 1
- Migration guide pattern incorrect HOT 2
- middleware does not seem to run -- Cannot PUT /mocking/mocks HOT 2
- PassThrough scenarios do not work for requests with JSON body HOT 1
- Add preset/mock schema as files to the package HOT 2
- Multiple mocks with same name HOT 1
- Multiple matching mocks HOT 3
- Duplicate apimockid cookies HOT 3
- How can i specify multiple src json locations ? HOT 1
- State.matchesBody() has a false positive for similar mocks HOT 5
- POST mocks resulting in 404 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.