Comments (5)
Hi thank you for using Mockoon :)
This is currently not supported. Only the body supports JSON templating with a various range of helpers giving you access to URL params, query params etc.
Headers values are not dynamic.
This is an interesting feature. I will plan this for a future release.
from mockoon.
I see ! So as of now there is no way mockoon can understand the Url i'm submitting ?
from mockoon.
It can but only in the response body where you can write something like:
{
"response": "{{queryParam 'paramName'}}"
}
This syntax is not supported in the headers.
from mockoon.
I see thank you for your time
from mockoon.
Templating in headers will be in v1.2.0.
In the meantime, query params arrays are already working. If you add {{queryParam 'test'}}
in the body, and call the route with ?test=a&test=b&test=c
you will get a,b,c
printed.
from mockoon.
Related Issues (20)
- State purge admin endpoint HOT 3
- Data buckets as response rule target HOT 8
- Allow data buckets to be reset to their original state via signal (CLI) or endpoint request HOT 2
- Using mockoon via a tunneling agent HOT 1
- March 2024 release - v8.0.0
- Manipulating global env variables via the CLI or admin API HOT 6
- No logs written in docker container HOT 2
- Regression: option to stop via mockoon-cli has been removed HOT 1
- Callback PATCH doesn't work HOT 3
- Json validation on beautify HOT 1
- Sync server reconnect with old token after switching to free account HOT 1
- Desktop app: replace context-menu by dropdowns
- Add option to disable admin API in CLI and serverless HOT 1
- Admin API: environment variables add/edit endpoint HOT 1
- Admin API: data buckets regeneration specific endpoint HOT 1
- Enable templating in TLS fields HOT 1
- April v8.1.0
- Files cannot be opened in macos (v8.1.0) HOT 1
- April v8.1.1
- Since v8.1.0 multi open allow to open duplicated environments HOT 1
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 mockoon.