Coder Social home page Coder Social logo

Insert Array in header about mockoon HOT 5 CLOSED

GregoireSion avatar GregoireSion commented on May 5, 2024
Insert Array in header

from mockoon.

Comments (5)

255kb avatar 255kb commented on May 5, 2024

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.

GregoireSion avatar GregoireSion commented on May 5, 2024

I see ! So as of now there is no way mockoon can understand the Url i'm submitting ?

from mockoon.

255kb avatar 255kb commented on May 5, 2024

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.

GregoireSion avatar GregoireSion commented on May 5, 2024

I see thank you for your time

from mockoon.

255kb avatar 255kb commented on May 5, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.